+ Reply to Thread
Results 1 to 6 of 6

Hours to number conversion + IF Function ends with #Value.

  1. #1
    Registered User
    Join Date
    11-08-2013
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2003 Mac
    Posts
    3

    Hours to number conversion + IF Function ends with #Value.

    Hello.
    Sorry, from an infrequent Excel user, for asking a question that has no doubt been answered many times before.
    I am trying to calculate daily / weekly pay with the added twist of overtime to be paid after so many hours have been worked.
    I have set up my spreadsheet with -
    A1-A6 - Start time Mon to Sat
    B1-B6 - End time Mon to Sat
    C1-C6 - Total hours worked
    D1-D5 - = Hrs * hourly rate (=C1*10.25)
    D6 - I have an IF function as follows =IF(D10:D14<=50,D15*10.25,D15*10.25*1.5)
    I have done this as overtime is paid for Saturday, if more than 50 hours is worked Monday to Friday.
    But I keep getting a #VALUE error in D6. I have tried changing format of cells for C & D columns and tried finding answers from previous threads, but to no end. If someone has an answwer for me, it would be greatly appreciated.

    Thanks
    Roly.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Hours to number conversion + IF Function ends with #Value.

    Hi and welcome to the forum

    Its not the format, that ius mainly just cosmetic and does not affect the underlying contents of a cell.

    From the looks of it, you need to add a SUM() in there...
    =IF(SUM(D10:D14)<=50,D15*10.25,D15*10.25*1.5)
    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

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Hours to number conversion + IF Function ends with #Value.

    Roly, your formula makes no sense as it's referring to cells that you do not explain the contents of. I.e. d10:d14 and D15.

    Could you post a sample workbook?

  4. #4
    Registered User
    Join Date
    11-08-2013
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2003 Mac
    Posts
    3

    Re: Hours to number conversion + IF Function ends with #Value.

    Thank you so much. That's the missing link. You folk are awesome.

  5. #5
    Registered User
    Join Date
    11-08-2013
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2003 Mac
    Posts
    3

    Re: Hours to number conversion + IF Function ends with #Value.

    Sorry. Cut and pasted formula directly from my worksheet without tidying it up to match my example. But it has been sorted. Thanks anyway.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Hours to number conversion + IF Function ends with #Value.

    Happy to help and thanks for the feedback

+ 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. [SOLVED] How to make a calender function with number of hours used
    By webbie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2013, 04:01 AM
  2. [SOLVED] Setting a range that ends where data ends?
    By Mgassma in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2013, 09:46 AM
  3. Replies: 4
    Last Post: 01-22-2013, 04:39 PM
  4. Number conversion to Hours
    By JR in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2006, 03:10 PM
  5. [SOLVED] Auto Fill Series when number ends in -1
    By JGus in forum Excel General
    Replies: 7
    Last Post: 12-22-2005, 11:20 PM

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