Need help finding formula to pull then rank rates based on separate column

dallas1593

New Member
Joined
Mar 3, 2017
Messages
3
Hi - hopefully can explain this properly. Basically, I am manually ranking choices from 1-3, but for choices 4 and on, I am looking for a formula that will look at Column A and know to only look at rates in Column D that are "1", and rank the lowest Rate as 4, then next lowest at 5, etc. - and then the same for Location 2 and so on. I have about 300 locations and 2800 lines, so a formula that could automate those Rate selections from 4 on but also know to only look at ranks within the specific Location Indicator would save hours.

So - ultimately, I want to fill Column C with Secondary Choices 4 and on with the lowest Rate in Column D but only for it's location as indicated in Column A.


A B C D
1701361910607.png
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Is this what you need?:

rates.xlsx
ABCD
1Location IndicatorTop ChoiceSecondary ChoicesRate
215105
311 107
412 112
513 115
616127
714100
823 105
926107
1022 112
1121 115
1227127
1324100
1425102
1534105
1631 107
1735112
1836115
1937127
2032 100
2133 102
Hoja1
Cell Formulas
RangeFormula
C2:C21C2=LET( Rates,SORT(FILTER(Hoja1!$D$2:$D$21,(Hoja1!$A$2:$A$21=Hoja1!$A2)*(Hoja1!$B$2:$B$21=0))), RatesSecChoice,HSTACK(Rates,SEQUENCE(ROWS(Rates),,4)), IFERROR(FILTER(CHOOSECOLS(RatesSecChoice,2),CHOOSECOLS(RatesSecChoice,1)=Hoja1!$D2),"") )
 
Upvote 0
Same thing without the page reference:

rates.xlsx
ABCD
1Location IndicatorTop ChoiceSecondary ChoicesRate
215105
311 107
412 112
513 115
616127
714100
823 105
926107
1022 112
1121 115
1227127
1324100
1425102
1534105
1631 107
1735112
1836115
1937127
2032 100
2133 102
Hoja1
Cell Formulas
RangeFormula
C2:C21C2=LET( Rates,SORT(FILTER($D$2:$D$21,($A$2:$A$21=$A2)*($B$2:$B$21=0))), RatesSecChoice,HSTACK(Rates,SEQUENCE(ROWS(Rates),,4)), IFERROR(FILTER(CHOOSECOLS(RatesSecChoice,2),CHOOSECOLS(RatesSecChoice,1)=$D2),"") )
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top