0
I've been going over this for a while and for the specific date + time format I have, I cannot get the Custom Number Format to pick the date up properly.
I have these dates (several examples):
6/21/2013 6:40 PM
5/28/2013 5:51 AM
6/11/2014 10:03 AM
12/3/2013 2:40 PM
And this Custom Number Format:
m/d/yyyy h:mm am/pm
The way I see it, it should figure out it is a date, and then I need to do some time differences between two dates in this specific format. I have hundreds of dates like this, so manually editing them to other formats is not a good option.
For example, I want to do something like this with the dates later on:
=INT(D3-B3) & "d " & HOUR(D3-B3) & "h " & MINUTE(D3-B3) & "m"
Where D3 and B3 are any two dates in the given format and D3 > B3.
That should give me the number of days, hours and minutes between the two dates, like this:
Xd Yh Zm
I tried with other format and it works OK, but I need it in that one.
Is there anything wrong with the pattern I am using?
Added sample xlsx file at https://itmb.co/zlw44
Which ones are D3 and B3? – Raystafarian – 2015-09-04T11:51:32.233
Just any two dates in the given format. – s1m3n – 2015-09-04T11:53:35.883
Well, which ones? How can we troubleshoot the formula to get what you want without the full example? – Raystafarian – 2015-09-04T11:54:27.577
OK, lets say that D3 is 6/21/2013 6:40 PM and B3 is 5/28/2013 5:51 AM – s1m3n – 2015-09-04T11:55:34.363
And what's the expected answer? 24d 12h 49m – Raystafarian – 2015-09-04T12:01:41.090
Yes, expected answer is 24d 12h 49m – s1m3n – 2015-09-04T12:09:42.773
Cannot reproduce - the formula works for me with the custom format. – Raystafarian – 2015-09-04T12:11:51.953
Strange. Added link to sample in Q. – s1m3n – 2015-09-04T12:21:41.843
The number format has nothing to do with the actual value of the cell. What happens if you format those cells as a number? – Kyle – 2015-09-04T16:06:11.410