#1   Report Post  
Annette
 
Posts: n/a
Default If with a range

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



  #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





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Expand Named Range - when size of the Range exceeds Snig Excel Discussion (Misc queries) 1 July 7th 05 01:46 PM
How to dynamically reference a dynamic named range paris3 Excel Worksheet Functions 4 June 24th 05 01:22 AM
Dynamic Print Range Help waxwing Excel Worksheet Functions 2 February 21st 05 03:47 PM
Define a range based on another named range Basil Excel Worksheet Functions 2 February 21st 05 01:47 PM
named range refers to: in a chart Spencer Hutton Excel Discussion (Misc queries) 1 December 14th 04 10:15 PM


All times are GMT +1. The time now is 11:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"