Results 1 to 5 of 5

Output Number of Days and Hours

Threaded View

  1. #1
    Registered User
    Join Date
    11-18-2009
    Location
    Malaysia, Kuching
    MS-Off Ver
    Excel 2003
    Posts
    10

    Output Number of Days and Hours

    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.
    Attached Files Attached Files
    Last edited by limecity; 03-26-2011 at 02:30 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1