Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 390
Default How do I create a formula to tell if A2:A25 contains a negative va

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"))
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 897
Default How do I create a formula to tell if A2:A25 contains a negativeva

=IF(COUNTIF(A2:A25,"<0")0,"negative in list","no negative in list")


HTH,
JP

On Apr 2, 4:43*pm, Bill wrote:
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"))


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default How do I create a formula to tell if A2:A25 contains a negativeva

=IF(COUNTIF(A2:A25,"<0")0, "Negative in list", "OK")

On Apr 2, 4:43 pm, Bill wrote:
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"))


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default How do I create a formula to tell if A2:A25 contains a negative va

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

"Bill" wrote:

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"))

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default How do I create a formula to tell if A2:A25 contains a negative va

=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 ;-)
--

Toby Erkson
http://excel.icbm.org/


"Bill" wrote:

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"))

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
Create a credit (negative) column in Excel? AvonSue Excel Worksheet Functions 6 March 30th 11 08:30 PM
HOW TO USE REPLACE OR CREATE A MACRO TO HIGHTLIGHT THE NEGATIVE VA VARSANG Excel Programming 1 March 19th 07 08:00 PM
create a formula in excel to prevnt negative neil@snowandjones Excel Worksheet Functions 5 October 14th 05 06:05 PM
Formula to make Negative Values Positive & Positive Values Negative? mustard Excel Discussion (Misc queries) 4 September 26th 05 10:05 PM
How do I create a negative amortization schedule? toots Excel Discussion (Misc queries) 0 August 25th 05 07:51 PM


All times are GMT +1. The time now is 04:51 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"