Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DP DP is offline
external usenet poster
 
Posts: 58
Default How to check if the values in a range of cells are greater than 0

Basically I want to check like IF(B3:B5 0,B1), if any of the values in B3
to B5 cells are greater than 0 then I take the value from the cell B1. How
to do it in a simple way.

If I use directly the above mentioned formula, it gives me a #VALUE error

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How to check if the values in a range of cells are greater than 0

Try this:

=IF(COUNTIF(B3:B5,"0")0,B1,something_else)

where you decide what you want the something_else to be (eg 0 or "").

Hope this helps.

Pete

On Mar 19, 10:19*am, DP wrote:
Basically I want to check like IF(B3:B5 0,B1), if any of the values in B3
to B5 cells are greater than 0 then I take the value from the cell B1. *How
to do it in a simple way.

If I use directly the above mentioned formula, it gives me a #VALUE error

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default How to check if the values in a range of cells are greater than 0

Hi,

What do we do if nothing in b3:b5 is greater than zero? This formula does
nothing

=IF(MAX(B3:B5)0,B1,"")
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"DP" wrote:

Basically I want to check like IF(B3:B5 0,B1), if any of the values in B3
to B5 cells are greater than 0 then I take the value from the cell B1. How
to do it in a simple way.

If I use directly the above mentioned formula, it gives me a #VALUE error

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default How to check if the values in a range of cells are greater than 0

=IF(OR(INDEX(B3:B50,)),B1,"")


"DP" wrote:

Basically I want to check like IF(B3:B5 0,B1), if any of the values in B3
to B5 cells are greater than 0 then I take the value from the cell B1. How
to do it in a simple way.

If I use directly the above mentioned formula, it gives me a #VALUE error

Thanks

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
Countif and values greater than zero for a named range Angela Excel Worksheet Functions 1 November 17th 09 04:32 PM
How to check all three cells are greater than 0% and then lookup v Len Excel Worksheet Functions 7 October 23rd 08 02:24 PM
Cells turn colors if greater than specified values or pop up remin hmsawyer Excel Discussion (Misc queries) 3 March 24th 08 01:59 PM
check for FALSE values in a range of cells in VBA Dave F[_2_] Excel Discussion (Misc queries) 2 August 7th 07 04:12 PM
Q: check a range values JIM.H. Excel Discussion (Misc queries) 2 October 21st 05 12:26 AM


All times are GMT +1. The time now is 04:00 PM.

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"