View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
madeleine madeleine is offline
external usenet poster
 
Posts: 1
Default Help Nested If and And

Hi

I have terrible trouble reading and writing nested if and ANDs. I'd
really appreciate it if someone could help me he

This is the formula I have written:

=IF($J9="PM",(IF(AND($K9<"",$Q9<"Yes"),SUM($C9:$ E9))),0)

PM stands for the department, I have a range of them to check for, and
I need the calculation to be specific to the department.

K9 will have initials in it or nothing

Q9 will have Yes or No or nothing

C9-E9 will have numbers in them.

What I want to do is check if the department is the right department,
if it is then if there is something in the initials and Q9 does not
equate to yes I would like to sum C9 and E9 otherwise it should be
zero. However what happens is that if the department = "PM" then I
get False in the cell and a message saying there is an error in the
equation.

All help is welcome and appreciated.

Thanks

Madeleine