Results 1 to 3 of 3

Thread: Too Many Arguments in Formula

  1. #1

    Too Many Arguments in Formula



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hi everyone, I am still working on a timesheet for work and was hoping to get some advise on a formula:
    =IF(OR(C12="PAT",C12="AL",C13="PAT",C12="AL",C14="PAT",C12="AL",C15="PAT",C12="AL",C16="PAT",C12="AL",),0,"",SUM(F12+F13+F14+F15+F16))

    Basically I have created a spread sheet to show AL & PAT show as 8 hours in the daily hours column. I want to add hours up for the week, with AL & AT in a separate box. Therefore they need to be shown as '0' hours for the purpose of the weekly addition being added in from their own section later on the sheet.

    Hope this makes sense!

  2. #2
    Your formula can be much simplified

    =IF(OR(C12="AL",COUNTIF(C12:C16,"PAT")),0,"",SUM(F12:F16))

    The rest of it doesn't make any sense (at least not to me).

  3. #3
    Acolyte Mike_Alex's Avatar
    Join Date
    Jun 2014
    Location
    Middle Wisconsin
    Posts
    57
    Articles
    0
    You also have some redundancy in the formula such as C12="AL", which is in the formula several times...

Posting Permissions

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