Convert Whole numbers to military time for calculations

Ron Abraham

New Member
Joined
Dec 3, 2011
Messages
15
in cell A1, I have whole number formatted as 00\:00 to insert the colon. In B1 I have military time formatted as h:mm. I need to add cells A1 and B1 to get a total.

Appreciate anyone's help in this matter.

Ron Abraham
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
well, time is funny with excel. 1/24 = 1am, 2/24 = 2am, 3/24 = 3am.....etc. So, if you're entering in 500 for 0500, you can just use
Code:
=(A1/100/24) + B1
(assuming B1 is in time format already)
 
Upvote 0
well, time is funny with excel. 1/24 = 1am, 2/24 = 2am, 3/24 = 3am.....etc. So, if you're entering in 500 for 0500, you can just use
Code:
=(A1/100/24) + B1
(assuming B1 is in time format already)


Thanks - I'll try that at work tonight. Appreciate your reply


Ron
 
Upvote 0
So, if you're entering in 500 for 0500, you can just use

=(A1/100/24) + B1

(assuming B1 is in time format already)

That doesn't work for other than whole hours, NRS.

Row\Col
A​
B​
C​
1​
1324​
13:14:24​
B1: =A1/100/24

Scott's does.
 
Upvote 0
That doesn't work for other than whole hours, NRS.

Row\Col
A​
B​
C​
1​
1324​
13:14:24​
B1: =A1/100/24

<tbody>
</tbody>


Scott's does.


Huh, I suppose you're right. That's what I get for testing with just a few pieces of sample data.
 
Upvote 0
Been there many times, most recently yesterday.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,429
Members
448,961
Latest member
nzskater

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