View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom Peo Sjoblom is offline
external usenet poster
 
Posts: 3,268
Default Conditional Formula

Something like this

=IF(M1="",0,IF(OR(AND(M1=0,M1<=5),AND(M1=35,M1<= 45),AND(M1=75,M1<=85)),SUM(A1:B1),0))

I added a condition checking if M1 is blank, then return zero or else it
would add A1 and B1 for a blank as well


--
Regards,

Peo Sjoblom



"Jim" wrote in message
...
Hello,

I would like to add cell a1 and b1 only if the totals of three other cells
are within a specific parameter.

For example; if my formula is is cell d1 and it is looking at m1 and the
result of m1 are 0 - 5, or 35 - 45, or 75 to 85, then I would like for d1
then to add cell a1 and b1. If m1 has any other result I do not want d1
to
take any action (remain 0).

Thanks for the help
Jim