Military time in excel

priceassist

New Member
Joined
Feb 12, 2016
Messages
6
I am working on a spreadsheet and my column E is my start time and column F is my stop time and i need to calculate the minutes in column G. =F-E=G doesn't always work. The time is military time and I want to be able to formulate it without needing to put the colons in. I want to be able to program the spreadsheet so when i plug in the start and atop time column G automatically calculates.

Start Stop Min
0827 1137
1158 1402
1438 1533
Total

0702 0814
0835 1137
1239 1534
1555 1737
1807 1914
1934 2118
Total


<colgroup><col span="4"></colgroup><tbody>
</tbody>
 
Yes it does, if it is text (which I suspect it is), but not if it is real time

It appears to me that they are Numbers Stored As Text...Not real time (hence user saying doesn't want to enter it with a :)
It works either way anyway. Whether they are real numbers (1137) or Numbers Store As Text (0827)

We know that they are NOT real time values, as the OP said he did not enter them with the :
 
Last edited:
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Very true, Jonmo, and nice formula :)
A​
B​
C​
2​
08271137
190​
3​
8:27​
11:37​
0​
4​
827​
1137​
190​
 
Upvote 0
Since you were able to figure out the last question I had, I have another!!! So, some of the case times I need to figure out go from one day to the next.

22000135
22002325
22000135
22000408

<colgroup><col span="2"></colgroup><tbody>
</tbody>

SO.... tried to figure it out but I gave up!

Thanks for ANY help!
 
Upvote 0
Try

=MOD((TEXT(B2,"00\:00")-TEXT(A2,"00\:00"))*1440,1)

This formula gave me all 0000....... have something else i could try??!!!

Thank you!!
 
Upvote 0
I didn't close the mod correctly

try

=MOD((TEXT(B2,"00\:00")-TEXT(A2,"00\:00")),1)*1440
 
Upvote 0

Forum statistics

Threads
1,216,088
Messages
6,128,744
Members
449,466
Latest member
Peter Juhnke

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