Conditional Formula for Dates/Formatting Answer as Time Format

JenMcG

New Member
Joined
Dec 2, 2016
Messages
46
Hello,

I currently use an excel spreadsheet to calculate the difference between 2 dates (K6=Received Date and L6 Date contacted). The format of the dates is as follows: 10/20/2017 12:12:49 PM

The conditional formula I am using is: =IF(K6="","",IF(L6="",NOW()-K6,L371-K6))

Currently the answer is displayed as a fraction, but I would like it converted to minutes. I thought it would be easy enough to change the cell format but that is not providing the answer I require.

This measured is so critical to the process it needs to be the minute.

How can I achieve this?

Example of current state is below:
[TABLE="width: 50"]
<tbody>[TR]
[TD="width: 32%, bgcolor: #003366"]Received Date

[/TD]
[TD="width: 38%, bgcolor: #003366"]Contacted Date

[/TD]
[TD="width: 30%, bgcolor: #FF0000"]MINUTES FROM RECEIVED TO CONTACTED

[/TD]
[/TR]
[TR]
[TD="width: 32%"]10/20/2017 12:12:49 PM

[/TD]
[TD="width: 38%"]10/20/2017 12:18:46 PM

[/TD]
[TD="width: 30%"]0.00

[/TD]
[/TR]
</tbody>[/TABLE]


Thank you for your help!

JM
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
I'm not quite sure why you use L371 in the formula, shouldn't that be L6?

To show the result as minutes and seconds custom format cell as m:ss - for your example that should give the result 5:57 - is that the result you want
 
Upvote 0
Hello Barry,

Your correct. it should be L6- Typo on my part (I have the spreadsheet filtered, copied the formula over and for to change that one for the purpose of the post).

The custom format works splendid. Thank you. I was using the time setting and didn't think to try the custom field.

Much appreciated!

JM
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,331
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