I am using the percentile function within an array. If I use it in conjunction with with an "IF" statement, I get the wrong result. For example, this formula returns the correct calculation (it's using a much smaller data set than actual).
{=PERCENTILE(L2:L8,0.02)}
However, if I embed this with an "IF" statement/array, I get the wrong result of 14,135:
{=PERCENTILE(IF(A2:A8="FGLMC 3",L2:L8,""),0.02)}
The values in column "L" (used in the Percentile function) are:
<null>
117,793
213,284
188,539
188,763
163,244
162,770
The 2% percentile should be 122,291. If I use the "Evaluate Formula" option from the "Formula" tab, I can see converted the null value to zero.
How do I get Excel to NOT convert the null to zero?
{=PERCENTILE(L2:L8,0.02)}
However, if I embed this with an "IF" statement/array, I get the wrong result of 14,135:
{=PERCENTILE(IF(A2:A8="FGLMC 3",L2:L8,""),0.02)}
The values in column "L" (used in the Percentile function) are:
<null>
117,793
213,284
188,539
188,763
163,244
162,770
The 2% percentile should be 122,291. If I use the "Evaluate Formula" option from the "Formula" tab, I can see converted the null value to zero.
How do I get Excel to NOT convert the null to zero?