Too Many Arguments in Formula

jnm71

New member
Joined
Jun 30, 2014
Messages
3
Reaction score
0
Points
0
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!
 
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).
 
You also have some redundancy in the formula such as C12="AL", which is in the formula several times...
 
Back
Top