If with a range

A

Annette

I wanted to include a range in this calculation but not sure how.

=IF(M5="0",L5*K5,0)

The range would be if anything found in columns M through Q = 0, then ...

How would I write this?

Thanks!

Annette
 
B

Bernie Deitrick

Annette,

=IF(COUNTIF(M5:Q5,0)=0,"What to do if true", "What to do if false")

perhaps:

=IF(COUNTIF(M5:Q5,0)=0,L5*K5,0)

HTH,
Bernie
MS Excel MVP
 
Top