A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to check if the values in a range of cells are greater than 0



 
 
Thread Tools Display Modes
  #1  
Old March 19th, 2010, 11:19 AM posted to microsoft.public.excel.worksheet.functions
DP
external usenet poster
 
Posts: 223
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  
Old March 19th, 2010, 11:24 AM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
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  
Old March 19th, 2010, 11:53 AM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
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  
Old March 19th, 2010, 02:31 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:52 AM.


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