Time Format differences

K

Kyle

I receive a report that provides me a time of say 10:00:00AM. I need this
into a format that Excel recognizes as a time. If I change the format of the
cell to HH:MM:SS AM/PM it doesn't recognize it I'm assuming because the lack
of a space between the actual time and the AM/PM. Is there a way to add the
spaces to all of these sections or to get Excel to recognize this as a time?
Otherwise, I'm hitting the space bar more times than it is worth.

Thanks,
Kyle
 
D

David Biddulph

You could use Edit/ Replace and change "AM" to " AM"

Another option is a formula such as =--(LEFT(A2,LEN(A2)-2)&" "&RIGHT(A2,2))
and format the result as time.
 
R

RagDyeR

Try:

=VALUE(LEFT(A1,8)&" "&RIGHT(A1,2))

OR

=--(LEFT(A1,8)&" "&RIGHT(A1,2))

--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

I receive a report that provides me a time of say 10:00:00AM. I need this
into a format that Excel recognizes as a time. If I change the format of
the
cell to HH:MM:SS AM/PM it doesn't recognize it I'm assuming because the lack
of a space between the actual time and the AM/PM. Is there a way to add the
spaces to all of these sections or to get Excel to recognize this as a time?
Otherwise, I'm hitting the space bar more times than it is worth.

Thanks,
Kyle
 
K

Kyle

Edit replace. To easy. Thank you very much.

David Biddulph said:
You could use Edit/ Replace and change "AM" to " AM"

Another option is a formula such as =--(LEFT(A2,LEN(A2)-2)&" "&RIGHT(A2,2))
and format the result as time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top