convert time without am pm to 24 hr

slochin

Board Regular
Joined
Dec 1, 2015
Messages
70
Hello,
I have a sheet I download daily with among other data a time in colA. This does not have am or pm.
So examples are below. This is for a sporting event and the times start in the mid morning.There would not be any late night times such a 12:00 midnight or 12:30 (AM) in the morning. I would like to be able to convert this to 24 hr time in the format which would keep the first three as the same and then 1:00 becomes 13:00 and so on.Hoping someone can help please.
10.30
12:00
12:30
1:00
1:30
[TABLE="width: 98"]
<colgroup><col></colgroup><tbody>[TR]
[TD]7:15


[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hello,
Thanks for reply. Does vary but mainly between 9am in the morning and 11pm at night
 
Last edited:
Upvote 0
maybe like this?

Book1
EF
107:3007:30
118:0008:00
128:3008:30
139:0009:00
149:3009:30
1510:0010:00
1610:3010:30
1711:0011:00
1811:3011:30
1912:0012:00
2012:3012:30
211:0013:00
221:3013:30
232:0014:00
242:3014:30
253:0015:00
263:3015:30
274:0016:00
284:3016:30
295:0017:00
305:3017:30
316:0018:00
326:3018:30
337:0019:00
347:3007:30
Sheet28
Cell Formulas
RangeFormula
F10=TEXT(IF(E10<0.3125,E10+0.5,E10),"hh:mm")
 
Upvote 0
ah sorry i didnt read your edit before i posted
my formula just adds on 12 hours to the time if it was before 7:30am making it look like pm in 24hour time. that wont work for times that are between 9am and 11pm since if i change it to before 11pm it would include times between 9am and 11am that are actually am and not pm

EDIT: basically the problem i've run into is if you can get times in the data that are 10am and 10pm but it will show 10:00 for both, i can't think of anyway to differentiate the two

sorry i couldnt help
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top