Cell value displays correctly, but incorrectly consists of date and time when clicked on

inactiveUser333473

New Member
Joined
Jul 10, 2015
Messages
45
Hi, I have cell which correctly displays "40:47" meaning 40 hours and 47 minutes. Which is the total hours worked that week. When I click on the cell I can see that excel has decided that this 40:47 is actually a date and time of "01/01/1900 16:47:00". This creates a problem for me when I try to calculate the difference between total time worked and total time that should have been worked.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
When I click on the cell I can see that excel has decided that this 40:47 is actually a date and time of "01/01/1900 16:47:00"
That's because it is, time is just a decimal fraction of day with 1 hour being 1/24th of a day. Therefore any time over 24 hours will be x days & y hours.

What is your current formula? Also can you post some sample data using the Xl2BB add-in
 
Upvote 0
Thanks,

C1 = hours actually worked
C2 = scheduled hours
C3 = balance
I was just using C2-C1 hoping to get the amount of minutes difference but it's wildly inaccurate. I don't have sample data as the sheet belongs to another co-worker that I was helping (I'm no longer at work)
 
Upvote 0
Is the scheduled hours more or less than 40 hours?
 
Upvote 0
In example, scheduled hours is 40 hours, actual worked hours is 40 hours 47 mins, so the difference should be 47 mins, but I get 7 hours, 13 mins
 
Upvote 0
Hi,

Do you need to differentiate hours Over and Under ???

Book3.xlsx
BCD
1Worked hrs38:30:0040:47:00
2Schuduled hrs40:00:0040:00:00
3Difference1:30:000:47:00
Sheet1060
Cell Formulas
RangeFormula
C3:D3C3=(MAX(C2,C1)-MIN(C2,C1))
 
Upvote 0
I will try this tomorrow, thanks all. I think that's enough for now. I'll try again tomorrow and repost with sample if it's still not working. I'm very grateful Fluff and jtakw for the help
 
Upvote 0

Forum statistics

Threads
1,214,868
Messages
6,122,005
Members
449,059
Latest member
mtsheetz

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