# Thread: Too Many Arguments in Formula

1. ## Too Many Arguments in Formula

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. 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. 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
•