Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
1. I have a formula I want to change and am not sure how.
=IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. Thank you Connie Martin |
#2
![]() |
|||
|
|||
![]()
1.=IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<-4"))
2. =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"<0")-COUNTIF(L17:L33,"<-4")) -- HTH RP (remove nothere from the email address if mailing direct) "Connie Martin" wrote in message ... 1. I have a formula I want to change and am not sure how. =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. Thank you Connie Martin |
#3
![]() |
|||
|
|||
![]()
First one is okay, but second one is not giving the right answer.
"Bob Phillips" wrote: 1.=IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<-4")) 2. =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"<0")-COUNTIF(L17:L33,"<-4")) -- HTH RP (remove nothere from the email address if mailing direct) "Connie Martin" wrote in message ... 1. I have a formula I want to change and am not sure how. =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. Thank you Connie Martin |
#4
![]() |
|||
|
|||
![]()
Connie,
1: =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"-4")) or possibly =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<-4")) depending if by "greater than" you mean on absolute or actual values. 2 =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"-4")+COUNTIF(L17:L33,"-")) HTH, Bernie MS Excel MVP "Connie Martin" wrote in message ... 1. I have a formula I want to change and am not sure how. =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. Thank you Connie Martin |
#5
![]() |
|||
|
|||
![]()
First one is okay. The other two don't give the right answer.
"Bernie Deitrick" wrote: Connie, 1: =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"-4")) or possibly =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<-4")) depending if by "greater than" you mean on absolute or actual values. 2 =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"-4")+COUNTIF(L17:L33,"-")) HTH, Bernie MS Excel MVP "Connie Martin" wrote in message ... 1. I have a formula I want to change and am not sure how. =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. Thank you Connie Martin |
#6
![]() |
|||
|
|||
![]()
Hi Connie
1. Try =COUNTIF(L17:L33,"<=-4") 2. Try =COUNTIF(L17:L33,"=-4")-COUNTIF(L17:L33,"0") -- Regards Frank Kabel Frankfurt, Germany Connie Martin wrote: 1. I have a formula I want to change and am not sure how. =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. Thank you Connie Martin |
#7
![]() |
|||
|
|||
![]()
First one works, but not the second one. Perhaps I haven't explained myself
well. Please see further post in reply to myself. "Frank Kabel" wrote: Hi Connie 1. Try =COUNTIF(L17:L33,"<=-4") 2. Try =COUNTIF(L17:L33,"=-4")-COUNTIF(L17:L33,"0") -- Regards Frank Kabel Frankfurt, Germany Connie Martin wrote: 1. I have a formula I want to change and am not sure how. =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. Thank you Connie Martin |
#8
![]() |
|||
|
|||
![]()
Hi
maybe explain in your second example WHICH numbers would be counted -- Regards Frank Kabel Frankfurt, Germany Connie Martin wrote: First one works, but not the second one. Perhaps I haven't explained myself well. Please see further post in reply to myself. "Frank Kabel" wrote: Hi Connie 1. Try =COUNTIF(L17:L33,"<=-4") 2. Try =COUNTIF(L17:L33,"=-4")-COUNTIF(L17:L33,"0") -- Regards Frank Kabel Frankfurt, Germany Connie Martin wrote: 1. I have a formula I want to change and am not sure how. =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. Thank you Connie Martin |
#9
![]() |
|||
|
|||
![]() |
#11
![]() |
|||
|
|||
![]()
one way:
1) =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<-4")) 2) =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<=0")-COUNTIF(L17:L33,"<-4")) In article , "Connie Martin" wrote: 1. I have a formula I want to change and am not sure how. =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. |
#12
![]() |
|||
|
|||
![]()
First one is okay, second one not okay. Please see further post to myself,
explaining perhaps a little better. Connie "JE McGimpsey" wrote: one way: 1) =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<-4")) 2) =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<=0")-COUNTIF(L17:L33,"<-4")) In article , "Connie Martin" wrote: 1. I have a formula I want to change and am not sure how. =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. |
#13
![]() |
|||
|
|||
![]()
I get the right answer from the first formula you all gave, Bob, Bernie &
Frank. But the other formulas are not working. I will give you the exact numbers in the column I'm working with now, where the formula should yield 11: - - - - - (1) (1) (1) 3 2 - - 5 5 5 6 - There are eight "-" and three numbers in the range of (4) to breaking even (the "-"). Connie "Connie Martin" wrote: 1. I have a formula I want to change and am not sure how. =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. Thank you Connie Martin |
#14
![]() |
|||
|
|||
![]()
Hi
the '-' is just formated for the value zero?. If yes the following formulas should work =COUNTIF(A1:A20,"=-4")-COUNTIF(A1:A20,"0") or =SUMPRODUCT(--(A1:A20=-4),--(A1:A20<=0)) adapt the ranges to your needs -- Regards Frank Kabel Frankfurt, Germany Connie Martin wrote: I get the right answer from the first formula you all gave, Bob, Bernie & Frank. But the other formulas are not working. I will give you the exact numbers in the column I'm working with now, where the formula should yield 11: - - - - - (1) (1) (1) 3 2 - - 5 5 5 6 - There are eight "-" and three numbers in the range of (4) to breaking even (the "-"). Connie "Connie Martin" wrote: 1. I have a formula I want to change and am not sure how. =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. Thank you Connie Martin |
#15
![]() |
|||
|
|||
![]()
That formula gives the answer 3. It should be 11.
"Frank Kabel" wrote: Hi the '-' is just formated for the value zero?. If yes the following formulas should work =COUNTIF(A1:A20,"=-4")-COUNTIF(A1:A20,"0") or =SUMPRODUCT(--(A1:A20=-4),--(A1:A20<=0)) adapt the ranges to your needs -- Regards Frank Kabel Frankfurt, Germany Connie Martin wrote: I get the right answer from the first formula you all gave, Bob, Bernie & Frank. But the other formulas are not working. I will give you the exact numbers in the column I'm working with now, where the formula should yield 11: - - - - - (1) (1) (1) 3 2 - - 5 5 5 6 - There are eight "-" and three numbers in the range of (4) to breaking even (the "-"). Connie "Connie Martin" wrote: 1. I have a formula I want to change and am not sure how. =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. Thank you Connie Martin |
#16
![]() |
|||
|
|||
![]()
Hi
then your '-' are probably not exact zero. Try: =COUNTIF(A1:A20,"=-4")-COUNTIF(A1:A20,"0.001") -- Regards Frank Kabel Frankfurt, Germany "Connie Martin" schrieb im Newsbeitrag ... That formula gives the answer 3. It should be 11. "Frank Kabel" wrote: Hi the '-' is just formated for the value zero?. If yes the following formulas should work =COUNTIF(A1:A20,"=-4")-COUNTIF(A1:A20,"0") or =SUMPRODUCT(--(A1:A20=-4),--(A1:A20<=0)) adapt the ranges to your needs -- Regards Frank Kabel Frankfurt, Germany Connie Martin wrote: I get the right answer from the first formula you all gave, Bob, Bernie & Frank. But the other formulas are not working. I will give you the exact numbers in the column I'm working with now, where the formula should yield 11: - - - - - (1) (1) (1) 3 2 - - 5 5 5 6 - There are eight "-" and three numbers in the range of (4) to breaking even (the "-"). Connie "Connie Martin" wrote: 1. I have a formula I want to change and am not sure how. =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. Thank you Connie Martin |
#17
![]() |
|||
|
|||
![]()
That still gives the answer 3. The "-" is what the accounting formatted cell
yields as the difference between two identical dates. All numbers in the column are the difference between dates in two other columns. Connie "Frank Kabel" wrote: Hi then your '-' are probably not exact zero. Try: =COUNTIF(A1:A20,"=-4")-COUNTIF(A1:A20,"0.001") -- Regards Frank Kabel Frankfurt, Germany "Connie Martin" schrieb im Newsbeitrag ... That formula gives the answer 3. It should be 11. "Frank Kabel" wrote: Hi the '-' is just formated for the value zero?. If yes the following formulas should work =COUNTIF(A1:A20,"=-4")-COUNTIF(A1:A20,"0") or =SUMPRODUCT(--(A1:A20=-4),--(A1:A20<=0)) adapt the ranges to your needs -- Regards Frank Kabel Frankfurt, Germany Connie Martin wrote: I get the right answer from the first formula you all gave, Bob, Bernie & Frank. But the other formulas are not working. I will give you the exact numbers in the column I'm working with now, where the formula should yield 11: - - - - - (1) (1) (1) 3 2 - - 5 5 5 6 - There are eight "-" and three numbers in the range of (4) to breaking even (the "-"). Connie "Connie Martin" wrote: 1. I have a formula I want to change and am not sure how. =IF(COUNT(L17:L33)=0,"",COUNTIF(L17:L33,"<0")) I want to now count all numbers from negative 4 and more. In case I'm not explaining this properly, if the column as these negative numbers (5), (3), (7), (8), (1), if would count only 3. 2. I have another formula that needs changing: =IF(COUNT(L17:L33)="","",COUNTIF(L17:L33,"-")) First of all, please note, the "-" is not text. It's the result of breaking even in an accounting formatted column. Okay, what I need changed is that it would count all numbers from negative 4 to the breaking even point. Again, in case I'm not explaining myself properly, if a column has these numbers: (4), (1), 8, 1, -, (2), it will count 4 from this colum. Thank you Connie Martin |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
revert formula insertion to old method | Setting up and Configuration of Excel | |||
Simple formula doesn't quite add up | Excel Discussion (Misc queries) | |||
how do I make a formula NOT change when the data range is moved? | Excel Discussion (Misc queries) | |||
Tricky formulas needed | Excel Worksheet Functions | |||
A formula to check differrent cells | Excel Worksheet Functions |