+ Reply to Thread
Results 1 to 8 of 8

Computing hourly rate

  1. #1
    Registered User
    Join Date
    03-04-2013
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2010
    Posts
    7

    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
    MS-Off Ver
    MS Office 2019
    Posts
    16,016

    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.

  3. #3
    Registered User
    Join Date
    03-04-2013
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2010
    Posts
    7

    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
    MS-Off Ver
    MS Office 2019
    Posts
    16,016

    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
    Omaha, NE
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Computing hourly rate

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

  6. #6
    Forum Expert Sambo kid's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    Office Professionsl Plus 2016- work; 2012 for Mac at home
    Posts
    5,661

    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 Sambo kid; 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
    Omaha, NE
    MS-Off Ver
    Excel 2010
    Posts
    7

    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
    MS-Off Ver
    MS Office 2019
    Posts
    16,016

    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)

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