Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default 4 "-" cells" help

In
A1 is "-115"
B1 is "-15" <---
C1 is "-18" <---
D1 is "Week 4"
E1 is "Price"
F1 is "-65" <---
G1 is "-25" <---
H1 is "256"
I1 is "-27"
L1 is "-56" ... and so on. (numbers are random order; mixed Positive &
Negative)


I need to have a command in "M5" to let know when "4" Negitive #'s are
logged in together, but are not in a contuinous columns, only the same roll
with info between.
needs to be for "Conditional Formating" in M5 =IF(???,"BUY","") also needs
to be coppied and pasted for more columns.

Thanks for your time..


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default 4 "-" cells" help

Hi,

You can use the formula below to achieve this. This will count the number of
times a negative number appears in the range A1 to M1. If the count is
greater than or equal 4 then it will give the "BUY" message. If it is less
than 4 the cell will be blank.

=IF(COUNTIF(A1:M1,"<0")=4,"BUY","")

Alan

--
Message posted via http://www.officekb.com

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default 4 "-" cells" help

In D2 enter =IF(AND(A1<0,B1<0,C1<0,D1<0),"Buy","")
Copy across the row

OR

In D2 enter AND(A1<0,B1<0,C1<0,D1<0); copy across the row
In M5 enter =IF(COUNTIF(A2:L2,TRUE),"Buy","")

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"j5b9721" wrote in message
...
In
A1 is "-115"
B1 is "-15" <---
C1 is "-18" <---
D1 is "Week 4"
E1 is "Price"
F1 is "-65" <---
G1 is "-25" <---
H1 is "256"
I1 is "-27"
L1 is "-56" ... and so on. (numbers are random order; mixed Positive &
Negative)


I need to have a command in "M5" to let know when "4" Negitive #'s are
logged in together, but are not in a contuinous columns, only the same
roll
with info between.
needs to be for "Conditional Formating" in M5 =IF(???,"BUY","") also needs
to be coppied and pasted for more columns.

Thanks for your time..




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default 4 "-" cells" help

Your formula does not test that the four negative values are consecutive
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Alan McQuaid via OfficeKB.com" <u23024@uwe wrote in message
news:969adb3a56923@uwe...
Hi,

You can use the formula below to achieve this. This will count the number
of
times a negative number appears in the range A1 to M1. If the count is
greater than or equal 4 then it will give the "BUY" message. If it is less
than 4 the cell will be blank.

=IF(COUNTIF(A1:M1,"<0")=4,"BUY","")

Alan

--
Message posted via http://www.officekb.com



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default 4 "-" cells" help

Hi...
Thank you for your help with the problem!!!!
I know it will be helpful!!!
Thanks Again!!!
Joe

"Alan McQuaid via OfficeKB.com" wrote:

Hi,

You can use the formula below to achieve this. This will count the number of
times a negative number appears in the range A1 to M1. If the count is
greater than or equal 4 then it will give the "BUY" message. If it is less
than 4 the cell will be blank.

=IF(COUNTIF(A1:M1,"<0")=4,"BUY","")

Alan

--
Message posted via http://www.officekb.com




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default 4 "-" cells" help

Hi...
Thank you for your help with the problem!!!!
I know it will be helpful!!! I know... I was looking for a strange situation
being consecutive numbers.
Thanks Again!!!
Joe

"Bernard Liengme" wrote:

Your formula does not test that the four negative values are consecutive
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Alan McQuaid via OfficeKB.com" <u23024@uwe wrote in message
news:969adb3a56923@uwe...
Hi,

You can use the formula below to achieve this. This will count the number
of
times a negative number appears in the range A1 to M1. If the count is
greater than or equal 4 then it will give the "BUY" message. If it is less
than 4 the cell will be blank.

=IF(COUNTIF(A1:M1,"<0")=4,"BUY","")

Alan

--
Message posted via http://www.officekb.com




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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Check if cells contain the word "Thailand", return "TRUE" ali Excel Worksheet Functions 7 September 14th 07 09:53 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


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