James bolton
Member
Hello all,
I am really racking my brain about this formula,#
I am trying to find out the MIN of range, IF the 2nd range matches the specific company & IF the figures are in the top 25 percentile of that range (I've attached a spreadsheet where this makes more sense) I've had to create an extra column to help in the meantime but would really like it as a formula.
I can do the countif variant
Ctrl + Shift + Enter
This Counts how many prices are in the top 25 percentile for Company A (it's basically 25% of the count but the formula "should" follow the same logic for MIN, MAX & AVG)
As always your help is greatly appreciated.
I am really racking my brain about this formula,#
I am trying to find out the MIN of range, IF the 2nd range matches the specific company & IF the figures are in the top 25 percentile of that range (I've attached a spreadsheet where this makes more sense) I've had to create an extra column to help in the meantime but would really like it as a formula.
I can do the countif variant
Code:
=COUNTIFS(B:B,B2,A:A,"<"&PERCENTILE(IF(B:B=B2,A:A),0.25))
Ctrl + Shift + Enter
This Counts how many prices are in the top 25 percentile for Company A (it's basically 25% of the count but the formula "should" follow the same logic for MIN, MAX & AVG)
As always your help is greatly appreciated.