Struggling with a Formula that has to do with date and time

Tclinken

New Member
Joined
Feb 19, 2018
Messages
12
I need a formula that has a cell which counts dwelling time in hours between: Cell A2 [=NOW() function] and [mmm dd yyyy H:mm) date format] :confused:

Example:
How long a package has been on a front door step,
in A1 [this is the date and time the package arrived], A2 [Is the =NOW() function]
I want A3 to display difference in time in hours between A2 and A1, :confused:
 
(A1) Feb 24 2018 11:57 = (A3) = 21 hours which is incorrect following the (A2) =NOW() ////// what is should be returned as is (A3) = 46 hours
(B1) Feb 23 2018 20:19 = (B3) = 13 hours which is incorrect following the (B2) =NOW() ////// What it should be returned as is (B3) = 61 hours

i've tried to read your guy's formulas i dont quite understand them like what does the "201" mean
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
You need to format your cell as [h]:mm. The 201 is just to put a comma within the string. So Feb 24 2018 becomes Feb 24, 2018. As i mentioned excel has different ways of coping with date strings depending on your location.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
Latest member
laura12345

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