Reorder Rows according to another cells value

gtd526

Well-known Member
Joined
Jul 30, 2013
Messages
684
Office Version
  1. 2019
Platform
  1. Windows
Hello,
I'd like to reorder rows (A3:A17) containing the values in (H21:H35) in the same order as (H21:H35). Thank you.
Here is the data:
NFL.xlsm
ABCDEFGHI
3IF(AND($A4=$AY4,$AA4>$AA5,$AB4>$AB5,$AC4>$AC5,$AD4>$AD5,$AE4>$AE5,$AF4>$AF5,$AG4<$AG5,$AH4>$AH5,$AI4>$AI5,$AJ4>$AJ5,$AK4>$AK5,$AL4>$AL5,$AM4>$AM5,$AN4>$AN5),"AA:AN (SRS/Pass/Pts)"IF(AND($A5=$AY5,$AA5>$AA4,$AB5>$AB4,$AC5>$AC4,$AD5>$AD4,$AE5>$AE4,$AF5>$AF4,$AG5<$AG4,$AH5>$AH4,$AI5>$AI4,$AJ5>$AJ4,$AK5>$AK4,$AL5>$AL4,$AM5>$AM4,$AN5>$AN4),"AA:AN (SRS/Pass/Pts)"
4,IF(AND($A4=$AY4,$AF4>$AF5,$AG4<$AG5,$AH4>$AH5,$AK4>$AK5,$AM4>$AM5,$AO4>$AO5),"AF:AH,AK,AM,AO (*SRS/*Pass/*Pts)",IF(AND($A5=$AY5,$AF5>$AF4,$AG5<$AG4,$AH5>$AH4,$AK5>$AK4,$AM5>$AM4,$AO5>$AO4),"AF:AH,AK,AM,AO (*SRS/*Pass/*Pts)"
5,IF(AND($A4=$AY4,$R4>$R5,$T4>$T5,$AA4>$AA5,$AJ4<$AJ5,$AM4>$AM5),"R,T,AA,AJ,AM (R/R/SRS/NY/A/Sc%)",IF(AND($A5=$AY5,$R5>$R4,$T5>$T4,$AA5>$AA4,$AJ5>$AJ4,$AM5>$AM4),"R,T,AA,AJ,AM (R/R/SRS/NY/A/Sc%)"
6,IF(AND($A4=$AY4,$AD4>$AD5,$AE4>$AE5,$AF4>$AF5,$AG4<$AG5,$AH4>$AH5,$AI4>$AI5,$AJ4>$AJ5,$AK4>$AK5,$AL4>$AL5,$AM4>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$AI4>$AI5,$AJ4>$AJ5),"AD:AJ (Passing)",IF(AND($A5=$AY5,$AD5>$AD4,$AE5>$AE4,$AF5>$AF4,$AG5<$AG4,$AH5>$AH4,$AI5>$AI4,$AJ5>$AJ4),"AD:AJ (Passing)"
12,IF(AND($A4=$AY4,$AK4>$AK5,$AL4>$AL5,$AM4>$AM5,$AN4>$AN5),"AK:AN (PTS)",IF(AND($A5=$AY5,$AK5>$AK4,$AL5>$AL4,$AM5>$AM4,$AN5>$AN4),"AK:AN (PTS)"
13,IF(AND($A4=$AY4,$AA4>$AA5,$AB4>$AB5,$AC4>$AC5),"AA:AC (SRS)",IF(AND($A5=$AY5,$AA5>$AA4,$AB5>$AB4,$AC5>$AC4),"AA:AC (SRS)"
14,IF(AND($A4=$AY4,$AJ4=$AJ5,$AM4>$AM5),"AJ,AM (NY/A/Sc%)",IF(AND($A5=$AY5,$AJ5>$AJ4,$AM5>$AM4),"AJ,AM (NY/A/Sc%)"
15,IF(AND($A4=$AY4,$AB4>$AB5,$AD4>$AD5,$AF4>$AF5,$AH4>$AH5,$AJ4>$AJ5,$AM4>$AM5),"AB,AD,AF,AH,AJ,AM (Misc)",IF(AND($A5=$AY5,$AB5>$AB5,$AD5>$AD5,$AF5>$AF5,$AH5>$AH5,$AJ5>$AJ5,$AM5>$AM5),"AB,AD,AF,AH,AJ,AM (Misc)"
16,IF(AND($A4=$AY4,$V4>$V5,$W4>$W5,$Y4>$Y5),"V:W,Y (ATS)",IF(AND($A5=$AY5,$V5>$V4,$W5>$W4,$Y5>$Y4),"V:W,Y (ATS)"
17,IF(AND($A4=$AY4,$S4<$S5,$U4<$U5),"S,U (R/R)",""))))))))))))))),IF(AND($A5=$AY5,$S5<$S4,$U5<$U4),"S,U (R/R)","")))))))))))))))
18
19Current
20Order of Indicator ListHow many Indicatorsvs Criteriavs WagerCriteria %Rank (No Dupe Ranks)Sorted by LARGETop CriteriaTop Rank
21AA:AN (SRS/Pass/Pts)1TRUETRUE42.9%652.3%S,U (R/R)1
22AF:AH,AK,AM,AO (*SRS/*Pass/*Pts)2TRUETRUE18.8%1350.0%R,T,V,W,Y (R/R/ATS)2
23AD:AN (Pass/Pts)3TRUETRUE19.2%1250.0%AA:AC (SRS)3
24V,AJ,AM (Cov%/Sc%/NY/A)4TRUETRUE38.2%949.0%AK:AN (PTS)4
25AA:AC,AK:AN (SRS/Pts)5TRUETRUE43.8%543.8%AA:AC,AK:AN (SRS/Pts)5
26AA:AJ (SRS/Pass)6TRUETRUE40.0%742.9%AA:AN (SRS/Pass/Pts)6
27R,T,V,W,Y (R/R/ATS)7TRUETRUE50.0%240.0%AA:AJ (SRS/Pass)7
28AD:AJ (Passing)8TRUETRUE36.1%1040.0%AB,AD,AF,AH,AJ,AM (Misc)8
29AK:AN (PTS)9TRUETRUE49.0%438.2%V,AJ,AM (Cov%/Sc%/NY/A)9
30AA:AC (SRS)10TRUETRUE50.0%336.1%AD:AJ (Passing)10
31R,T,AA,AJ,AM (R/R/SRS/NY/A/Sc%)11TRUETRUE 10035.6%V:W,Y (ATS)11
32AJ,AM (NY/A/Sc%)12TRUETRUE 10119.2%AD:AN (Pass/Pts)12
33AB,AD,AF,AH,AJ,AM (Misc)13TRUETRUE40.0%818.8%AF:AH,AK,AM,AO (*SRS/*Pass/*Pts)13
34V:W,Y (ATS)14TRUETRUE35.6%11#NUM!R,T,AA,AJ,AM (R/R/SRS/NY/A/Sc%)100
35S,U (R/R)15TRUETRUE52.3%1#NUM!AJ,AM (NY/A/Sc%)101
Test
Cell Formulas
RangeFormula
C21:C35C21=COUNTIF('Weekly Picks'!$BH$4:$BP$76,$A21)>0
D21:D35D21=COUNTIF([Wagers.xlsm]NFL!$R$1:$BF$1,$A21)>0
E21:E35E21=INDEX('Criteria Ranks'!$C$3:$C$20,MATCH(Indicators!$A30,'Criteria Ranks'!$A$3:$A$20,0))
F33:F35,F21:F30F21=RANK.EQ($E21,$E$21:$E$35)+COUNTIF($E$21:$E21,$E21)-1
G21:G35G21=LARGE($E$21:$E$35, ROWS(E$21:E21))
H21:H35H21=INDEX($A$21:$A$35,MATCH($I21,$F$21:$F$35,0))
I21:I35I21=SMALL($F$21:$F$35, ROWS(I$21:I21))
A32:A35,A21:A22A21=MID($A3,FIND("""",$A3)+1,FIND("""",$A3,FIND("""",$A3)+1)-FIND("""",$A3)-1)
A23:A30A23=MID($A6,FIND("""",$A6)+1,FIND("""",$A6,FIND("""",$A6)+1)-FIND("""",$A6)-1)
A31A31=MID($A5,FIND("""",$A5)+1,FIND("""",$A5,FIND("""",$A5)+1)-FIND("""",$A5)-1)
 
If you need to re-order the formula then your logic is wrong. I haven't looked at it in detail but a formula like that should return the same results regardless of order if it has been written correctly.

Please refer to the final sentence of my previous reply.

I have no problem with helping you to come up with a proper solution but I'm not going to waste time on something that will never work.
Thank you.
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,223,714
Messages
6,174,052
Members
452,542
Latest member
Bricklin

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