Adjust PERCENTRANK column reference automatically

James02

Board Regular
Joined
Nov 6, 2014
Messages
108
Hi,

Thank you for reading this.

Question:
PERCENTRANK.INC(D:D,D2,4)

Is there a way to reference the array segment of the formula with by referencing another cell? For example, the formula.. "PERCENTRANK.INC(D:D,D2,4)" referring to column D. I'm wanting to figure out a way for the formula to reference different columns based upon a cell value. So it will switch to column E, F, or G.

I have a fairly mega spreadsheet, and will run into memory limitations and need to limit the amount of formulas, therefore, I hope to minimize the amount of formulas by being able to reference columns I choose. I don't want to have to %rank each column, but just pick and choose the columns I need to % rank overtime.

Does this make sense? Thank you.

https://www.dropbox.com/home?preview=2015-05-21+PERCENTRANK.INC+formula.xlsx
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I think this might help you out a little:


Excel 2012
ABCDE
1use columnb
2start at row6
3finish at row1048576last row in Excel
4
5random #random #random #
632596652%
742381033%
826702362%
993834986%
101088290%
1182273824%
129286129%
13559176100%
1447144419%
1546822281%
16473955%
178052748%
18402420%
1913137014%
20136610057%
2165449338%
2258749167%
2352796476%
242974467%
2585908895%
26976110%
2782481443%
Sheet17
Cell Formulas
RangeFormula
E6=PERCENTRANK.INC(INDIRECT($C$1&$C$2&":"&$C$1&$C$3),INDIRECT($C$1&ROW(),4))
 
Upvote 0
Dude! This is freaking EPIC! This is exactly what I was looking for. Legendary! I didn't think anyone would respond either, this is going to be a huge help on my project.
 
Upvote 0
BTW. this is my final real life formula, it's so complex it's crazy! But it's working like a BAUS:

=PERCENTRANK.INC(IF(A$4:A$2003=A4,INDIRECT($AF$1&$AF$2&":"&$AF$1&$AF$3),""),INDIRECT($AF$1&ROW(),4),4)
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,695
Members
448,979
Latest member
DET4492

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