I'm stumped! I'm trying to rank counties based on the estimated number of paint cans and shoes (columns F, G and H) and the following critieria:
1st 5 = rank A
6 - 10 = rank B
all else = rank D
In order to be ranked as an A or B, the minimum volume must be equal to one or greater.
I created this formula using nested if/and/or/large functions -- =IF(OR(AND(F2>0.99,F2=LARGE($F$2:$F$15,1)),AND(F2>0.99,F2=LARGE($F$2:$F$15,2)),AND(F2>0.99,F2=LARGE($F$2:$F$15,3)),AND(F2>0.99,F2=LARGE($F$2:$F$15,4)),AND(F2>0.99,F2=LARGE($F$2:$F$15,5))),"A",IF(OR(AND(F2>0.99,F2=LARGE($F$2:$F$15,6)),AND(F2>0.99,F2=LARGE($F$2:$F$15,7)),AND(F2>0.99,F2=LARGE($F$2:$F$15,8)),AND(F2>0.99,F2=LARGE($F$2:$F$15,9)),AND(F2>0.99,F2=LARGE($F$2:$F$15,10))),"B","D"))
but the locked ranges makes things very difficult when copying and pasting to other cells, this needs to be done for 80+ regions
my hope is that someone would be able to help me avoid having to lock the ranges, maybe using named ranges somehow for the region #.
Ideally, I would like to be able to eliminate the two black rows (originally created for sorting each table and manually plugging in A, B or D prior to creating the formula) and have the workbook only consider the ranking based on common region #.
FYI there are a different number of counties in each region.
The purpose of the ranking by class A and B would be to copy and paste all of the A states and counties onto a seperate tab, B's on another to upload into another application. So the A's and B's might not even be needed, as long as the appropriate counties/states end up on the correct upload tab.
ANY help at all would be greatly appreciated!
link to file: https://www.dropbox.com/s/x84mgvwo01xglc4/rank%20by%20region.xlsx
1st 5 = rank A
6 - 10 = rank B
all else = rank D
In order to be ranked as an A or B, the minimum volume must be equal to one or greater.
I created this formula using nested if/and/or/large functions -- =IF(OR(AND(F2>0.99,F2=LARGE($F$2:$F$15,1)),AND(F2>0.99,F2=LARGE($F$2:$F$15,2)),AND(F2>0.99,F2=LARGE($F$2:$F$15,3)),AND(F2>0.99,F2=LARGE($F$2:$F$15,4)),AND(F2>0.99,F2=LARGE($F$2:$F$15,5))),"A",IF(OR(AND(F2>0.99,F2=LARGE($F$2:$F$15,6)),AND(F2>0.99,F2=LARGE($F$2:$F$15,7)),AND(F2>0.99,F2=LARGE($F$2:$F$15,8)),AND(F2>0.99,F2=LARGE($F$2:$F$15,9)),AND(F2>0.99,F2=LARGE($F$2:$F$15,10))),"B","D"))
but the locked ranges makes things very difficult when copying and pasting to other cells, this needs to be done for 80+ regions
my hope is that someone would be able to help me avoid having to lock the ranges, maybe using named ranges somehow for the region #.
Ideally, I would like to be able to eliminate the two black rows (originally created for sorting each table and manually plugging in A, B or D prior to creating the formula) and have the workbook only consider the ranking based on common region #.
FYI there are a different number of counties in each region.
The purpose of the ranking by class A and B would be to copy and paste all of the A states and counties onto a seperate tab, B's on another to upload into another application. So the A's and B's might not even be needed, as long as the appropriate counties/states end up on the correct upload tab.
ANY help at all would be greatly appreciated!
link to file: https://www.dropbox.com/s/x84mgvwo01xglc4/rank%20by%20region.xlsx