we get scanned documents and the files does not contain standard formatting for the fields, although text only or number only fields have no issue but lately got stuck on this one think. After converting the time field which is in the format "12.30am" & "1.30pm" we get something like "1200am" & "130pm" now the problem starts when we try to get this string to be converted to a time format as "12:00:00 AM" & "1:30:00 PM" some how the formula is not helping in getting the right results.
"=TEXT((LEFT(G2,LEN(G2)-2)),"00:00")+((RIGHT(G2,2)="pm")/2)"
Where G2 has the "1200am" & "130pm"
G...........H
-------------------
0000am 12:00:00 AM (1200am converted to 0000am for easy recognition)
0030am 12:30:00 AM
100am 1:00:00 AM
130am 1:30:00 AM
1130am 11:30:00 AM
1200pm 12:00:00 AM (problem starts when it shows 12pm instead of the 00am)
1030pm 10:30:00 PM
100pm 1:00:00 PM
130pm 1:30:00 PM
0000am 12:00:00 AM
0030am 12:30:00 AM
100am 1:00:00 AM
1230pm 12:30:00 AM
100pm 1:00:00 PM
can someone solve this issue or recommend a better formula method to be used?
"=TEXT((LEFT(G2,LEN(G2)-2)),"00:00")+((RIGHT(G2,2)="pm")/2)"
Where G2 has the "1200am" & "130pm"
G...........H
-------------------
0000am 12:00:00 AM (1200am converted to 0000am for easy recognition)
0030am 12:30:00 AM
100am 1:00:00 AM
130am 1:30:00 AM
1130am 11:30:00 AM
1200pm 12:00:00 AM (problem starts when it shows 12pm instead of the 00am)
1030pm 10:30:00 PM
100pm 1:00:00 PM
130pm 1:30:00 PM
0000am 12:00:00 AM
0030am 12:30:00 AM
100am 1:00:00 AM
1230pm 12:30:00 AM
100pm 1:00:00 PM
can someone solve this issue or recommend a better formula method to be used?