hey i need a formula for this
There can be one more manual process for this if you need to have top
sales for all different periods. Apply custom sort on Pid column and
choose smallest to largest.
Apply filter on columns and choose 1 in pid column. In column C use
the formula =RANK(B2,$B$2:$B$10,0) assuming that last value of 1 in
pid column is shown in A10. Then select 2 in column A for Pid(period)
and apply the same formula in visible cells. Repeat this until you
have done the same with all periods. Now remove filter from Pid column
and apply filter on Rank column , check values from 1 to 10 and all
top sales in periods 1 to 4 would be visible.
Hope that helps,
Anand
9910548139
@Bernard Liengme
Dear Sir,
I tested your formula on following data set
pid sales Result
1 5 10
1 10 10
1 7 10
2 10 10
2 5 10
2 20 10
3 15 10
3 6 10
3 5 10
The third column (C) has the formula {=LARGE(IF($A$2:$A$10=1,$B$2:$B
$10,0),1)} (array entered as per instructions), somehow the results
were not what they should be. I've tried to see the logic behind the
formula through formula auditing but can't figure out where I went
wrong. I was wondering if you could illuminate.
thanks,
Anand
9910548139