Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
I have numbers in range B6:K300 and also some text. I want to count the
number of occurances of cells with an absolute value of < 100. Thank you, Steven |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
=SUM(IF(ISTEXT(B6:K300),,IF(ISEMPTY(B6:K300),,IF(A BS(B6:K300)<100,1,))))
This is an array formula therefore should be netered with CTRL+SHIFT +ENTER |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
=SUMPRODUCT(--(B6:K300<""),--(ABS(B6:K300)<100))
-- __________________________________ HTH Bob "Steven" wrote in message ... I have numbers in range B6:K300 and also some text. I want to count the number of occurances of cells with an absolute value of < 100. Thank you, Steven |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
=SUMPRODUCT(--(IF(ISERROR(VALUE(B6:C9)),0,ABS(B6:C9)<100)))
as an array formula (Ctrl+Shift+Enter) Regards, Stefi €žSteven€ ezt Ã*rta: I have numbers in range B6:K300 and also some text. I want to count the number of occurances of cells with an absolute value of < 100. Thank you, Steven |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
Sorry, I forgot to mention that replace my test range with B6:K300
Stefi €žSteven€ ezt Ã*rta: I have numbers in range B6:K300 and also some text. I want to count the number of occurances of cells with an absolute value of < 100. Thank you, Steven |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
If you are going to use an array formula, you might as well use SUM as
SUMPRODUCT -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Stefi" wrote in message ... Sorry, I forgot to mention that replace my test range with B6:K300 Stefi "Steven" ezt írta: I have numbers in range B6:K300 and also some text. I want to count the number of occurances of cells with an absolute value of < 100. Thank you, Steven |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
Thanks Bob, now I see your point!
I think that we must use an array formula. I tried your normal formula =SUMPRODUCT(--(B6:K300<""),--(ABS(B6:K300)<100)) but it returned #VALUE error because of not handling text cells. Stefi €žBob Phillips€ ezt Ã*rta: If you are going to use an array formula, you might as well use SUM as SUMPRODUCT -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Stefi" wrote in message ... Sorry, I forgot to mention that replace my test range with B6:K300 Stefi "Steven" ezt Ã*rta: I have numbers in range B6:K300 and also some text. I want to count the number of occurances of cells with an absolute value of < 100. Thank you, Steven |
#8
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
I see why you did it now (I must admit to wondering about that), but I would
use ISNUMBER, then it simply becomes =SUM(IF(ISNUMBER(B6:C9),IF(ABS(B6:C9)<100,1))) the intent is nice and clear then. -- __________________________________ HTH Bob "Stefi" wrote in message ... Thanks Bob, now I see your point! I think that we must use an array formula. I tried your normal formula =SUMPRODUCT(--(B6:K300<""),--(ABS(B6:K300)<100)) but it returned #VALUE error because of not handling text cells. Stefi "Bob Phillips" ezt írta: If you are going to use an array formula, you might as well use SUM as SUMPRODUCT -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Stefi" wrote in message ... Sorry, I forgot to mention that replace my test range with B6:K300 Stefi "Steven" ezt írta: I have numbers in range B6:K300 and also some text. I want to count the number of occurances of cells with an absolute value of < 100. Thank you, Steven |
#9
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
=SUM(--if(ISNUMBER(B6:K300);ABS(B6:K300)<100))
This is an array formula therefore should be netered with CTRL+SHIFT +ENTER Pedro J. I see why you did it now (I must admit to wondering about that), but I would use ISNUMBER, then it simply becomes =SUM(IF(ISNUMBER(B6:C9),IF(ABS(B6:C9)<100,1))) the intent is nice and clear then. |
#10
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
I tried it and it worked with SUM function but not simply, only when entered
as an array formula. Stefi €žBob Phillips€ ezt Ã*rta: I see why you did it now (I must admit to wondering about that), but I would use ISNUMBER, then it simply becomes =SUM(IF(ISNUMBER(B6:C9),IF(ABS(B6:C9)<100,1))) the intent is nice and clear then. -- __________________________________ HTH Bob "Stefi" wrote in message ... Thanks Bob, now I see your point! I think that we must use an array formula. I tried your normal formula =SUMPRODUCT(--(B6:K300<""),--(ABS(B6:K300)<100)) but it returned #VALUE error because of not handling text cells. Stefi "Bob Phillips" ezt Ã*rta: If you are going to use an array formula, you might as well use SUM as SUMPRODUCT -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Stefi" wrote in message ... Sorry, I forgot to mention that replace my test range with B6:K300 Stefi "Steven" ezt Ã*rta: I have numbers in range B6:K300 and also some text. I want to count the number of occurances of cells with an absolute value of < 100. Thank you, Steven |
#11
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
Oh yeah, I didn't mention array-entered again as we had already established
that. -- __________________________________ HTH Bob "Stefi" wrote in message ... I tried it and it worked with SUM function but not simply, only when entered as an array formula. Stefi "Bob Phillips" ezt írta: I see why you did it now (I must admit to wondering about that), but I would use ISNUMBER, then it simply becomes =SUM(IF(ISNUMBER(B6:C9),IF(ABS(B6:C9)<100,1))) the intent is nice and clear then. -- __________________________________ HTH Bob "Stefi" wrote in message ... Thanks Bob, now I see your point! I think that we must use an array formula. I tried your normal formula =SUMPRODUCT(--(B6:K300<""),--(ABS(B6:K300)<100)) but it returned #VALUE error because of not handling text cells. Stefi "Bob Phillips" ezt írta: If you are going to use an array formula, you might as well use SUM as SUMPRODUCT -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Stefi" wrote in message ... Sorry, I forgot to mention that replace my test range with B6:K300 Stefi "Steven" ezt írta: I have numbers in range B6:K300 and also some text. I want to count the number of occurances of cells with an absolute value of < 100. Thank you, Steven |
#12
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
Try this:
None "Array" enter =SUM(COUNTIF(B6:K300,{"-100","=100"})*{1,-1}) "Steven" wrote: I have numbers in range B6:K300 and also some text. I want to count the number of occurances of cells with an absolute value of < 100. Thank you, Steven |
#13
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
Bob,
Your formula is almost getting me there. Except if I put text in a cell it gives me #VALUE! Thank you, Steven "Bob Phillips" wrote: Oh yeah, I didn't mention array-entered again as we had already established that. -- __________________________________ HTH Bob "Stefi" wrote in message ... I tried it and it worked with SUM function but not simply, only when entered as an array formula. Stefi "Bob Phillips" ezt Ã*rta: I see why you did it now (I must admit to wondering about that), but I would use ISNUMBER, then it simply becomes =SUM(IF(ISNUMBER(B6:C9),IF(ABS(B6:C9)<100,1))) the intent is nice and clear then. -- __________________________________ HTH Bob "Stefi" wrote in message ... Thanks Bob, now I see your point! I think that we must use an array formula. I tried your normal formula =SUMPRODUCT(--(B6:K300<""),--(ABS(B6:K300)<100)) but it returned #VALUE error because of not handling text cells. Stefi "Bob Phillips" ezt Ã*rta: If you are going to use an array formula, you might as well use SUM as SUMPRODUCT -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Stefi" wrote in message ... Sorry, I forgot to mention that replace my test range with B6:K300 Stefi "Steven" ezt Ã*rta: I have numbers in range B6:K300 and also some text. I want to count the number of occurances of cells with an absolute value of < 100. Thank you, Steven |
#14
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
Now I see your later response. And that one works great. Thank you.
"Bob Phillips" wrote: I see why you did it now (I must admit to wondering about that), but I would use ISNUMBER, then it simply becomes =SUM(IF(ISNUMBER(B6:C9),IF(ABS(B6:C9)<100,1))) the intent is nice and clear then. -- __________________________________ HTH Bob "Stefi" wrote in message ... Thanks Bob, now I see your point! I think that we must use an array formula. I tried your normal formula =SUMPRODUCT(--(B6:K300<""),--(ABS(B6:K300)<100)) but it returned #VALUE error because of not handling text cells. Stefi "Bob Phillips" ezt Ã*rta: If you are going to use an array formula, you might as well use SUM as SUMPRODUCT -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Stefi" wrote in message ... Sorry, I forgot to mention that replace my test range with B6:K300 Stefi "Steven" ezt Ã*rta: I have numbers in range B6:K300 and also some text. I want to count the number of occurances of cells with an absolute value of < 100. Thank you, Steven |
#15
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
Wow Steven, those are complicated answers, how about just using:
=COUNTIF(B6:K300,"< 100") you don't need to worry about absolute values as an absolute value only drops the negative from an number below 0. Your looking for a value under 100, any value below 0 is still below 100. In fact, using an absolute will probably not give you the correct answer if you deal with negative numbers as -101 is below 100, abs(-101) is above 100. IE: it equals 101 "Steven" wrote: I have numbers in range B6:K300 and also some text. I want to count the number of occurances of cells with an absolute value of < 100. Thank you, Steven |
#16
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
But he probably wants -101 to be excluded.
-- __________________________________ HTH Bob "TWhizTom" wrote in message ... Wow Steven, those are complicated answers, how about just using: =COUNTIF(B6:K300,"< 100") you don't need to worry about absolute values as an absolute value only drops the negative from an number below 0. Your looking for a value under 100, any value below 0 is still below 100. In fact, using an absolute will probably not give you the correct answer if you deal with negative numbers as -101 is below 100, abs(-101) is above 100. IE: it equals 101 "Steven" wrote: I have numbers in range B6:K300 and also some text. I want to count the number of occurances of cells with an absolute value of < 100. Thank you, Steven |
#17
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Count items in range
Very nice, I'm working hard in order to understand it. Could you give me some
guide to it? Thanks, Stefi €žTeethless mama€ ezt Ã*rta: Try this: None "Array" enter =SUM(COUNTIF(B6:K300,{"-100","=100"})*{1,-1}) "Steven" wrote: I have numbers in range B6:K300 and also some text. I want to count the number of occurances of cells with an absolute value of < 100. Thank you, Steven |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
SUMPRODUCT to count items with duplicates where another column contains two defined items | Excel Worksheet Functions | |||
Count unique items in range | Excel Worksheet Functions | |||
Countif count items not in data range | Excel Discussion (Misc queries) | |||
How do I count items within a date range in Excel? | Excel Worksheet Functions | |||
named range, data validation: list non-selected items, and new added items | Excel Discussion (Misc queries) |