How do I create a formula to tell if A2:A25 contains a negative va

B

Bill

I want to know how to write a simple (please, not VBA) formula to let me know
if a range contains a negative value, i.e., IF(A2:A25) contains a value less
than zero, "negative in list","no negative in list"))
 
M

Mike

This should do it
=IF(COUNTIF(A2:A25,"<0"),"negative in list","no negative in list")
 
A

Air_Cooled_Nut

=IF(MIN(A2:A25)<0,"negative in list", "no negative in list")
Interestingly enough, the below works as well:
=IF(MIN(A2:A25),"negative in list", "no negative in list")

In the future, if you don't want VBA help then see the
microsoft.public.excel.functions forum ;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top