Hi All,
I had an excel file with wrong time format keyed in. Example:
11.00am
5.20pm
how can i change it to actual time format?
11:00:00
17:20:00
Please help.
Hi All,
I had an excel file with wrong time format keyed in. Example:
11.00am
5.20pm
how can i change it to actual time format?
11:00:00
17:20:00
Please help.
Select the range of cells in question
Press the key combo of CTRL H. This will open the Find/Replace userform.
Find what: .
Replace with: :
Replace All
Find what: am
Replace with: <enter a space character here>am
Replace All
Find what: pm
Replace with: <enter a space character here>pm
Replace All
Format as h:mm
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
hi nickh. try:
=--SUBSTITUTE(REPLACE(A1,6,0," "),".",":")
format cells to whatever desired. probably:
hh:mm
Thanks, if you have clicked on the * and added our rep.
If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".
"Contentment is not the fulfillment of what you want, but the realization of what you already have."
Tips & Tutorials I Compiled | How to Get Quick & Good Answers
Wow. Both ways works fine from Tony and beni. Thanks for the fast response!
You're welcome. We appreciate the feedback!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks