Date Format

jaycee

Active Member
Joined
Jul 22, 2009
Messages
323
Sorry if this has been requested before but I could not find the answer.

in cell B6 i want to add the time ie 0837 (hhmm format)
in cell C6 I want to add another time ie 0956 (hhmm format)
In cell D6 I need the difference of C6/B6 in minutes.

Whenever I try I get conflicting answers.

Many thanks
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi there,

Simplest solution is to have D6 set as "=C6-B6" and format it with a custom format of "[m]" (do not include "" marks).
 
Upvote 0
Thanks for that, but I get the problem in the first 2 cells when adding the time of 0856 it defaults to 0000 with hhmm format.

Any ideas on this one.

Many thanks
 
Upvote 0
0856, that is wher the fault is, I want to set it up so that I do not have to add the colon
 
Upvote 0
I can't see a solution that would keep it as just three columns without the colon being entered. If you enter the time as a different format then excel will treat it as a decimal. eg 0837 to 0937 would return 100 minutes instead of 60. It can be done using additional helper columns though if that was acceptable?

Maybe someone else know more than I do however.
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,823
Members
452,946
Latest member
JoseDavid

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