I am trying to list the top 25 combinations 'over' and 'under' based on the combination in column O by either using the variance in column R or the amount 'over' and 'under' in columns S and T respectively having the top 25 'over' populate in column U and the top 25 under populate in column V.
Note: the number of top "combinations" needs to be able to change from 25 to 10 etc when needed.
[TABLE="width: 1604"]
<tbody>[TR]
[TD]I[/TD]
[TD]J[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]O[/TD]
[TD]P[/TD]
[TD]Q[/TD]
[TD]R[/TD]
[TD]S[/TD]
[TD]T[/TD]
[TD]U[/TD]
[TD]V[/TD]
[/TR]
[TR]
[TD]APO Product No-FRZ[/TD]
[TD]Description[/TD]
[TD]Regional[/TD]
[TD]Regional Name[/TD]
[TD]CONCAT REGIONAL AND MATERIAL[/TD]
[TD]Total Order Qty (cases)[/TD]
[TD]Forecast (cases)[/TD]
[TD]Variance (cases)[/TD]
[TD]3 of cases over fcst[/TD]
[TD]# of cases under fcst[/TD]
[TD]Top 25 Over[/TD]
[TD]Top 25 Under[/TD]
[/TR]
[TR]
[TD]39677230301[/TD]
[TD]PLAIN BAGEL 4.5OZ KOSHER[/TD]
[TD]9200000[/TD]
[TD]ALBERTSONS LLC[/TD]
[TD]920000039677230301[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]39677230318[/TD]
[TD]CINNAMON RAISIN BAGEL 4.5OZ KOSHER[/TD]
[TD]9200000[/TD]
[TD]ALBERTSONS LLC[/TD]
[TD]920000039677230318[/TD]
[TD]504[/TD]
[TD]0[/TD]
[TD]504[/TD]
[TD]504[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]39677230325[/TD]
[TD]BLUEBERRY BAGEL 4.5OZ KOSHER[/TD]
[TD]9200000[/TD]
[TD]ALBERTSONS LLC[/TD]
[TD]920000039677230325[/TD]
[TD]560[/TD]
[TD]0[/TD]
[TD]560[/TD]
[TD]560[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]39677230417[/TD]
[TD]JALAPENO BAGEL 4.5OZ KOSHER[/TD]
[TD]9200000[/TD]
[TD]ALBERTSONS LLC[/TD]
[TD]920000039677230417[/TD]
[TD]840[/TD]
[TD]0[/TD]
[TD]840[/TD]
[TD]840[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]39677030307[/TD]
[TD]PLAIN BAGEL 4 5OZ[/TD]
[TD]9200004[/TD]
[TD]OTHER ONTARIO[/TD]
[TD]920000439677030307[/TD]
[TD]7[/TD]
[TD]20[/TD]
[TD]-13[/TD]
[TD]0[/TD]
[TD]-13[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]39677030314[/TD]
[TD]CINNAMON RAISIN BAGEL 4 5OZ[/TD]
[TD]9200004[/TD]
[TD]OTHER ONTARIO[/TD]
[TD]920000439677030314[/TD]
[TD]12[/TD]
[TD]20[/TD]
[TD]-8[/TD]
[TD]0[/TD]
[TD]-8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank you!!
Note: the number of top "combinations" needs to be able to change from 25 to 10 etc when needed.
[TABLE="width: 1604"]
<tbody>[TR]
[TD]I[/TD]
[TD]J[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]O[/TD]
[TD]P[/TD]
[TD]Q[/TD]
[TD]R[/TD]
[TD]S[/TD]
[TD]T[/TD]
[TD]U[/TD]
[TD]V[/TD]
[/TR]
[TR]
[TD]APO Product No-FRZ[/TD]
[TD]Description[/TD]
[TD]Regional[/TD]
[TD]Regional Name[/TD]
[TD]CONCAT REGIONAL AND MATERIAL[/TD]
[TD]Total Order Qty (cases)[/TD]
[TD]Forecast (cases)[/TD]
[TD]Variance (cases)[/TD]
[TD]3 of cases over fcst[/TD]
[TD]# of cases under fcst[/TD]
[TD]Top 25 Over[/TD]
[TD]Top 25 Under[/TD]
[/TR]
[TR]
[TD]39677230301[/TD]
[TD]PLAIN BAGEL 4.5OZ KOSHER[/TD]
[TD]9200000[/TD]
[TD]ALBERTSONS LLC[/TD]
[TD]920000039677230301[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]39677230318[/TD]
[TD]CINNAMON RAISIN BAGEL 4.5OZ KOSHER[/TD]
[TD]9200000[/TD]
[TD]ALBERTSONS LLC[/TD]
[TD]920000039677230318[/TD]
[TD]504[/TD]
[TD]0[/TD]
[TD]504[/TD]
[TD]504[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]39677230325[/TD]
[TD]BLUEBERRY BAGEL 4.5OZ KOSHER[/TD]
[TD]9200000[/TD]
[TD]ALBERTSONS LLC[/TD]
[TD]920000039677230325[/TD]
[TD]560[/TD]
[TD]0[/TD]
[TD]560[/TD]
[TD]560[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]39677230417[/TD]
[TD]JALAPENO BAGEL 4.5OZ KOSHER[/TD]
[TD]9200000[/TD]
[TD]ALBERTSONS LLC[/TD]
[TD]920000039677230417[/TD]
[TD]840[/TD]
[TD]0[/TD]
[TD]840[/TD]
[TD]840[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]39677030307[/TD]
[TD]PLAIN BAGEL 4 5OZ[/TD]
[TD]9200004[/TD]
[TD]OTHER ONTARIO[/TD]
[TD]920000439677030307[/TD]
[TD]7[/TD]
[TD]20[/TD]
[TD]-13[/TD]
[TD]0[/TD]
[TD]-13[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]39677030314[/TD]
[TD]CINNAMON RAISIN BAGEL 4 5OZ[/TD]
[TD]9200004[/TD]
[TD]OTHER ONTARIO[/TD]
[TD]920000439677030314[/TD]
[TD]12[/TD]
[TD]20[/TD]
[TD]-8[/TD]
[TD]0[/TD]
[TD]-8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank you!!