Question about subtracting Dates/Time

Monuda85

New Member
Joined
Dec 6, 2015
Messages
13
Probelm_zpspisj5lis.jpg


This is one of the intermediate tutorials from Excel 2013.
Hi all, I am trying to subtract from C7 to B8 to get how long it took in decimal numbers. However, I keep getting an error -- #VALUE!
I might have typed/formatted the dates or time in an incorrect way or something. I would be appreciate your help to figure it out.​
 
check that B7 and C7 are dates and not text
you need to have the cell formatted as a date
I suspect you have text in the cell and not a date

Change the format to general and you should see a number
40987.27083
40988.58333

then format the cell d
as
[H]:MM
to show the result in hours

31.30
 
Upvote 0
Right, that is a basic way to avoid the errors. However, I still haven't been able to see those numbers thus still struggling to get the desired result :( Could you elaborate step by step? (even though you already did...)
 
Upvote 0
Try formatting b7 & c7 by press Ctrl & 1, then date, then down to: 3/14/12 1:30 PM enter. I tried this & it works along with formatting d7, Ctrl & 1, click Custom, then in the Type zone type: [H]:MM This worx!!!
 
Upvote 0
None of those methods work on my Excel :( Thank you for trying to help and finding out my problems. At least I know how to deal with them now!
 
Upvote 0
can you attach a file using a share like dropbox or onedrive - I suspect the date format is the issue here


you would proably need to re-enter the date just as a date and time in 24hour format and then reformat to show the AM/PM
 
Last edited:
Upvote 0
Thank you so much~! I finally figured it out and got the result I wanted but I have a few questions as I have done not exactly in the same way as the tutorial.
1. How come the guy in tutorial manages to put the mm/dd/yyyy when I can only do dd/mm/yyyy?
2. For some reason, cell C7 is showing up as ######## but it looks fine when I double-click to reveal the format or print it.
 
Upvote 0

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