Trying to do a excel formula to count number of days and hours so i can calculate the total charge for car rental.
Cell C2: $100.00
Cell F2: 23/3/2011 10:00:00 AM
Cell G2: 25/3/2011 11:00:00 AM
I set =G2-F2
Outputs : 2:01:00 with the format of d:hh:mm
or it shows 2 1/24 in other format
or it shows 2.04 in another format
I did a multiply of OUTPUT TIME DURATION * RATE
= $100.00 * 2.04
= $204.17
My expectation was to get the number to 2.1
(2 days and 1 hour)
so, i can do the multiple of
$100.00 * 2.1 = $210.00
Question 1:
How to get it to 2.1 instead of 2.04
---------------------------------
Then if it exceeds 5 hours, it will consider as 1 full day
meaning, 3.0
Question 2:
How to set it to +1 for the number of day when it exceeds 5 hours ?
Rather complicated issue I got here. Can the formula do this or i need to do some programming in macro?
Refer to the attachment for the excel file. Thank you in advance for the help if there is any contributors.
Bookmarks