dear expert
I've in A1 "08/04/2016 08:00" and in B1 "08/04/2016 10:30"
and I need to know how long the duration from A1 to B1?
Some time a1 and b1 have different date
dear expert
I've in A1 "08/04/2016 08:00" and in B1 "08/04/2016 10:30"
and I need to know how long the duration from A1 to B1?
Some time a1 and b1 have different date
Last edited by azbi; 05-31-2016 at 09:18 PM.
Azbi,
Formula:
Please Login or Register to view this content.
will give you the difference between the two dates/times. You can then format the output correctly to show it in hours and minutes.
Cheers
<-- If you're happy & you know it...click the star.:-)
sorry amit.wilson, your formula could be use in same date only, not for different date
TryFormula:
Please Login or Register to view this content.
And format the cell as Custom-->hh:mm
Cheers
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
I would suggest this help file (one of the help files I used the most) https://support.office.com/en-us/art...fab54be7f4#bm1
Note in particular the time formatting about 2/3 of the way down. Note the difference between time hh:mm and elapsed time [hh]:mm.
Originally Posted by shg
MrShorty, very helpful link - added to my collection![]()
after read article from MrShorty, and thinking deeply about what was FDibbins wrote, I tried to use amit.wilson and change the format, and finally I've got what I want
thanks for you all who has make me understand
Good stuff, Im glad you got it resolved, and thanks for the feedback![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks