close

greetings

The formula shown is in B5, dragged down to B10. It refers to values in
A5:A10. Could someone explain in ordinary English how I should interpret
what it is doing:

I'm particularly unsure how to interpret:
a) why the criteria for the Countif is itself a range. What does that
mean?
b) when does the logical test of the If statement return TRUE?

{=If(A5lt;A$5:A$10, 1/Countif(A$5:A$10, A$5:A$10))}Sample output

A B A B
4 FALSE 3 FALSE
0 1 0 0.333333
3 1 3 FALSE
1 0.333333
8 FALSE 8 FALSE
3 1 3 FALSE

confused
anny
I'm just guessing, but maybe that formula is supposed to be:

=SUM(IF(A5lt;A$5:A$10, 1/COUNTIF(A$5:A$10, A$5:A$10),0))

then copy it down.

When you key it in, hit Control Shift Enter and excel will put the curly
brackets {} around the formula to indicate it is an array formula.

For a discussion on array formulas see
www.cpearson.com/excel/array.htmsum(1/COUNTIF(A$5:A$10, A$5:A$10)) is a formula that I've seen on this site
used to count the number of unique values in a range. In your case, I'm
guessing the formula is supposed to count the number of unique numbers in the
range that are greater than the number being evaluated, but it would need to
be tweaked to what I've got above. The way the formula is originally
written, it won't evaluate to a singe number that can be displayed in one
cell.

quot;annyquot; wrote:

gt; greetings
gt;
gt; The formula shown is in B5, dragged down to B10. It refers to values in
gt; A5:A10. Could someone explain in ordinary English how I should interpret
gt; what it is doing:
gt;
gt; I'm particularly unsure how to interpret:
gt; a) why the criteria for the Countif is itself a range. What does that
gt; mean?
gt; b) when does the logical test of the If statement return TRUE?
gt;
gt; {=If(A5lt;A$5:A$10, 1/Countif(A$5:A$10, A$5:A$10))}
gt;
gt;
gt; Sample output
gt;
gt; A B A B
gt; 4 FALSE 3 FALSE
gt; 0 1 0 0.333333
gt; 3 1 3 FALSE
gt; 1 0.333333
gt; 8 FALSE 8 FALSE
gt; 3 1 3 FALSE
gt;
gt; confused
gt; anny
gt;
gt;
gt;
gt;
gt;
gt;

The revised formula would give you something like:

A B
4 1 -One unique value in A5:A10 greater than 4
0 3 -Three unique values in A5:A10 greater than 0
3 2 -Two unique values in A5:A10 greater than 3
3 -Three unique values in A5:A10 greater than 0
8 0 -No unique values in A5:A10 greater than 8
3 2 -Two unique values in A5:A10 greater than 3

Is this close to what you think the formula was intended to do?

quot;annyquot; wrote:

gt; greetings
gt;
gt; The formula shown is in B5, dragged down to B10. It refers to values in
gt; A5:A10. Could someone explain in ordinary English how I should interpret
gt; what it is doing:
gt;
gt; I'm particularly unsure how to interpret:
gt; a) why the criteria for the Countif is itself a range. What does that
gt; mean?
gt; b) when does the logical test of the If statement return TRUE?
gt;
gt; {=If(A5lt;A$5:A$10, 1/Countif(A$5:A$10, A$5:A$10))}
gt;
gt;
gt; Sample output
gt;
gt; A B A B
gt; 4 FALSE 3 FALSE
gt; 0 1 0 0.333333
gt; 3 1 3 FALSE
gt; 1 0.333333
gt; 8 FALSE 8 FALSE
gt; 3 1 3 FALSE
gt;
gt; confused
gt; anny
gt;
gt;
gt;
gt;
gt;
gt;

excellent, thank you
anny

全站熱搜
創作者介紹
創作者 software 的頭像
software

software

software 發表在 痞客邦 留言(0) 人氣()