Thread: If with a range
View Single Post
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

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


"Annette" wrote in message ...
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