+ Reply to Thread
Results 1 to 8 of 8

Computing hourly rate

  1. #1
    Registered User
    Join Date
    03-04-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    16

    Computing hourly rate

    I've got a sheet that has, Time Out (cell A), Time In (cell B), Total Time (cell C), Amount Earned (cell D). I also have a column that is supposed to computer the hourly rate in cell E.

    Cell A and Cell B are set to: Format = Time
    Cell C is set to: Format = Time --> Custom --> h:mm
    Cell D is set to: Accounting
    Cell E is set to: General

    I subtract B from A to fill C; I divide D by C to fill E. But, E isn't computing properly and I assume it's because of the h:mm format in Cell C.

    Any ideas on what I can do to fix this?

    Thanks,

    Chip
    Attached Files Attached Files
    Last edited by RCMjr; 10-12-2019 at 06:23 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Computing hourly rate

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-04-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Computing hourly rate

    Alan,

    That makes perfect sense. Thanks for letting me know.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Computing hourly rate

    Your formula in E2 should be: =D2/(C2*24)

    This is because Time is a decimal part of 1 day or 24 hours. So, in terms of your issue, if you highlight C2 and select the F2 key and then the F9 key. Edit and Calculate, you will see that your value is really 0.0416666666666667 and not 1 as shown. Make sure to click on the escape key.

  5. #5
    Registered User
    Join Date
    03-04-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Computing hourly rate

    When I put that formula in, I get 0.00.
    Attached Files Attached Files

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Computing hourly rate

    if you are looking for the hourly rate you have to change the format of that column (col E) to general or accounting or currency, general will return 20, accounting or currency will return $20.

    AND, if you want to get rid of the div/0 errors then make the formula either this... =IF(D2="","",D2/(C2*24)) or this =IFERROR(D2/(C2*24),"") or this...
    =IFERROR(D2/(C2*24),0) -- this last one will make the accounting look like this $ - when nothing is there.
    Last edited by Sam Capricci; 10-12-2019 at 11:30 PM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  7. #7
    Registered User
    Join Date
    03-04-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Computing hourly rate

    Yes, that's it. I wasn't even looking at how column E was set. I was just concerned about what it was showing.

    Thanks for the help.

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Computing hourly rate

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 11
    Last Post: 02-22-2016, 02:39 PM
  2. Computing and Chart for Win/Loss Rate!
    By chester1993 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-03-2016, 01:41 AM
  3. Replies: 1
    Last Post: 02-28-2014, 02:31 AM
  4. [SOLVED] What function can I use to add a flat rate plus an hourly rate?
    By dosmin777 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2014, 02:26 AM
  5. Hourly Rate
    By Eskimos in forum Excel General
    Replies: 5
    Last Post: 12-01-2006, 03:56 PM
  6. Hourly Pick Rate.
    By pobrien31 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-31-2006, 01:34 PM
  7. VBA To Decide Which Hourly Rate
    By Jasper in forum Excel General
    Replies: 1
    Last Post: 04-21-2005, 10:06 AM

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