Ranking Array need to move as per the data

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
994
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team,

I am using a Rank formula and i have a lot of data in columns A and B. so I have applied the rank formula in Column C1 :C9 and I just copied that formula in C12 to C20 so the Rank array is still in C1:C9 so I need to drag manually the array from C1: C9 to C12:C20. i have lot of data so need to drag for each Array will take time..

so do we have any option where Array will also come to the new data file instead of doing manual?

book1
ABC
12Ally Bank9
245Bank of America1
317Capital One/Capital One Bank/Capital One 360 (Q117+)5
440Chase2
537Wells Fargo3
63USAA8
719Citibank4
89PNC Bank6
99USBank6
10
11
1217Ally Bank5
1371Bank of America#N/A
1442Capital One/Capital One Bank/Capital One 360 (Q117+)#N/A
1573Chase#N/A
1664Wells Fargo#N/A
1716USAA#N/A
1838Citibank#N/A
1943PNC Bank#N/A
2031USBank#N/A
Sheet1
Cell Formulas
RangeFormula
C1:C9,C12:C20C1=RANK($A1,$A$1:$A$9,0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C12:C20Cell Valuetop 1 valuestextNO
B12:B20Cell Valuetop 2 valuestextNO
B12:B20Cell Valuetop 1 valuestextNO
B1:B9Cell Valuetop 2 valuestextNO
B1:B9Cell Valuetop 1 valuestextNO
A1:C9Cell Valuetop 1 valuestextNO
A12:B20Cell Valuetop 1 valuestextNO
 
Is this a separate question with just a single group of data or are there really several groups with space between each group like earlier in the thread?
If several groups please give sample data and expected results for at least two groups.
Hi Peter,

Sorry for delay:)

Here is the example data where i need ranking from F1: F10, F12:F20, F23:F32 and so on

book1
BCDEFGHIJ
1Capital One17171617B of A45
2Ally3342Chase40
3B of A49434445Wells Fargo37
4Chase45424240Citibank19
5Wells Fargo41423737Capital One17
6USAA3333PNC9
7Citibank22211919USBank9
8PNC9999USAA3
9USBank119109Ally2
10
11
12Capital One34374142Chase73
13Ally19201617B of A71
14B of A71717171Wells Fargo64
15Chase69717273PNC43
16Wells Fargo66646764Capital One42
17USAA22192416Citibank38
18Citibank34383338USBank31
19PNC40373543Ally17
20USBank32283231USAA16
21
22
23Capital One69676865
24Ally34343432
25B of A73707069
26Chase73707067
27Wells Fargo70686665
28USAA42414140
29Citibank64626359
30PNC39393838
31USBank46444443
32
33
34Capital One26.527.327.125.9
35Ally10.610.610.611.4
36B of A22.522.522.523.6
37Chase2927.92727.6
38Wells Fargo21.520.719.620.2
39USAA13.513.613.613.8
40Citibank2019.319.419.2
41PNC10.810.210.210.8
42USBank12.111.911.413
43
44
45
46
47Capital One32.330.529.730.2
48Ally12.811.111.512.7
49B of A30.32928.929.9
50Chase36.532.932.631.8
51Wells Fargo26.723.124.624.3
52USAA14.613.913.813.5
53Citibank25.723.123.823
54PNC15.212.712.513.8
55USBank16.914.51514.7
56
57Capital One-2929.228.6
58Ally-10.510.511.5
59B of A-23.324.323.7
60Chase-3029.227.9
61Wells Fargo-18.419.119
62USAA-11.912.412.2
63Citibank-19.219.818.6
64PNC-9.6910.4
65USBank-11.911.912.2
66
67Capital One26.527.327.125.9
68Ally10.610.610.611.4
69B of A22.522.522.523.6
70Chase2927.92727.6
71Wells Fargo21.520.719.620.2
72USAA13.513.613.613.8
73Citibank2019.319.419.2
74PNC10.810.210.210.8
75USBank12.111.911.413
76
77Capital One26.527.327.125.9
78Ally10.610.610.611.4
79B of A22.522.522.523.6
80Chase2927.92727.6
81Wells Fargo21.520.719.620.2
82USAA13.513.613.613.8
83Citibank2019.319.419.2
84PNC10.810.210.210.8
85USBank12.111.911.413
86
87
88Capital One53555656
89Ally55474549
90B of A49475054
91Chase51525156
92Wells Fargo42464745
93USAA48455045
94Citibank38363839
95PNC44403941
96USBank39404042
97
98
99
100
101Capital One53.254.855.755.8
102Ally54.647.345.349.2
103B of A4947.350.554.4
104Chase5152.351.356.2
105Wells Fargo41.846.547.245
106USAA48.345.250.445.2
107Citibank38.135.638.139.1
108PNC43.640.239.240.8
109USBank39.140.139.541.6
110
111
112Capital One63.258.661.163.4
113Ally52.748.552.449.7
114B of A64.66564.465.3
115Chase68.46867.667.4
116Wells Fargo63.660.46157.9
117USAA5547.955.147.9
118Citibank46.849.347.650.7
119PNC57.650.355.760.6
120USBank53.850.249.756.6
121
122
123Capital One-61.259.260.7
124Ally-49.949.855.2
125B of A-6260.864.6
126Chase-65.463.765
127Wells Fargo-57.661.554.5
128USAA-50.753.746.8
129Citibank-47.948.546.2
130PNC-46.849.453.6
131USBank-48.446.151.6
132
133
134Capital One60.158.656.861.8
135Ally55.549.945.357.3
136B of A57.35557.260.8
137Chase59.15954.761
138Wells Fargo50.852.450.953
139USAA57.850.951.151.2
140Citibank43.34541.644
141PNC48.942.64449.2
142USBank44.643.943.145.1
143
144
145Capital One32323131
146Ally10999
147B of A21222222
148Chase33333232
149Wells Fargo16161617
150USAA11111112
151Citibank20202019
152PNC9889
153USBank11101011
154
155
156Capital One71706974
157Ally59535862
158B of A66676974
159Chase72747274
160Wells Fargo61606362
161USAA60585761
162Citibank51515057
163PNC53524855
164USBank47535154
165
166
167
168
169Capital One38373837
170Ally19181818
171B of A56545353
172Chase52494948
173Wells Fargo52504848
174USAA25252525
175Citibank43414039
176PNC27262524
177USBank33303030
178
179Capital One37353534
180Ally18181718
181B of A53535251
182Chase49474645
183Wells Fargo50484747
184USAA24252524
185Citibank41403938
186PNC26252424
187USBank31293029
188
189Capital One55565558
190Ally57545454
191B of A76777676
192Chase71697071
193Wells Fargo74747374
194USAA59616262
195Citibank67666567
196PNC68666665
197USBank71686969
Sheet1
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
What are the answers to post #10 questions?


Hi Peter,

Thank you so much for looking into it.
  1. Will this sheet still have the ranking as per the original question? (I need ranking for column B vs F column and out can be in Column IJ (yellow highlighted)
  2. Does this need to be without a helper column? If so, the formulas will be much more complicated. ( Anything can work since I need ranking for each segment)
 
Upvote 0
Thanks.
Could something like this work for you?

sksanjeev786.xlsm
BCDEFGHIJ
10
2Capital One171716171B of A45
3Ally33421Chase40
4B of A494344451Wells Fargo37
5Chase454242401Citibank19
6Wells Fargo414237371Capital One17
7USAA33331PNC9
8Citibank222119191USBank9
9PNC99991USAA3
10USBank1191091Ally2
11   
12   
13Capital One343741422Chase73
14Ally192016172B of A71
15B of A717171712Wells Fargo64
16Chase697172732PNC43
17Wells Fargo666467642Capital One42
18USAA221924162Citibank38
19Citibank343833382USBank31
20PNC403735432Ally17
21USBank322832312USAA16
22   
23   
24Capital One696768653B of A69
25Ally343434323Chase67
26B of A737070693Capital One65
27Chase737070673Wells Fargo65
28Wells Fargo706866653Citibank59
29USAA424141403USBank43
30Citibank646263593USAA40
31PNC393938383PNC38
32USBank464444433Ally32
33   
Sheet1
Cell Formulas
RangeFormula
H2:H33H2=IF(B2="","",IF(B1="",LOOKUP(9^9,H$1:H1)+1,H1))
I2:I33I2=IF(H2="","",INDEX(B:B,AGGREGATE(15,6,ROW(B$2:B$43)/((F$2:F$43=J2)*(H$2:H$43=H2)),COUNTIFS(J$2:J2,J2,H$2:H2,H2))))
J2:J33J2=IF(B2="","",AGGREGATE(14,6,F$2:F$43/(H$2:H$43=H2),COUNTIF(H$2:H2,H2)))
 
Upvote 1
Solution
Thanks.
Could something like this work for you?

sksanjeev786.xlsm
BCDEFGHIJ
10
2Capital One171716171B of A45
3Ally33421Chase40
4B of A494344451Wells Fargo37
5Chase454242401Citibank19
6Wells Fargo414237371Capital One17
7USAA33331PNC9
8Citibank222119191USBank9
9PNC99991USAA3
10USBank1191091Ally2
11   
12   
13Capital One343741422Chase73
14Ally192016172B of A71
15B of A717171712Wells Fargo64
16Chase697172732PNC43
17Wells Fargo666467642Capital One42
18USAA221924162Citibank38
19Citibank343833382USBank31
20PNC403735432Ally17
21USBank322832312USAA16
22   
23   
24Capital One696768653B of A69
25Ally343434323Chase67
26B of A737070693Capital One65
27Chase737070673Wells Fargo65
28Wells Fargo706866653Citibank59
29USAA424141403USBank43
30Citibank646263593USAA40
31PNC393938383PNC38
32USBank464444433Ally32
33   
Sheet1
Cell Formulas
RangeFormula
H2:H33H2=IF(B2="","",IF(B1="",LOOKUP(9^9,H$1:H1)+1,H1))
I2:I33I2=IF(H2="","",INDEX(B:B,AGGREGATE(15,6,ROW(B$2:B$43)/((F$2:F$43=J2)*(H$2:H$43=H2)),COUNTIFS(J$2:J2,J2,H$2:H2,H2))))
J2:J33J2=IF(B2="","",AGGREGATE(14,6,F$2:F$43/(H$2:H$43=H2),COUNTIF(H$2:H2,H2)))
Wow...!!! Simply Awesome...!!!

Thank you so much, Peter...for your hard work and support on this :)

Regards
Sanjeev
 
Upvote 0
Cheers. You are welcome. :)
Hi Peter,

Hope you are doing well :)

Everything is working very well in the formula you have provided but I have one more condition

like can I have a secondary ranking if if data is the same in Column F (i.e.PNC and US Bank are 9 )then need to check from Column E (US bnak 10 and PNC 9) so data in column J7 and J8 ranking data should be (US bank 9 and PNC 9) # Post 14 ref.

Regards
Sanjeev
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,177
Members
452,615
Latest member
bogeys2birdies

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