# Determine Largeness of a Value Within Range

#### Roybzer

##### New Member
I really thought that this was going to be simple, but I just can't figure it out.

I have a list of 70 values in a range.

There are multiple rows of values for each of these columns. For this example, the rows could be a physical good, and the rows are customers. The values in the table represent the number of each item each customer has.

I want to be able to establish by checking each item, what relative position of largeness that it holds within the range. I can't sort the table, as this will change for each customer, so is there a way of looking at a value and saying that it is the nth largest cell within the given range?

Using the large(array, n) function requires knowing n(the nth largest value). I'm looking for a way of calculating n.

Thanks

### Excel Facts

Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

##### Well-known Member
Hi RoyZber,

I'm not sure I'm following correctly but do you mean the RANK?

Here you specify the Customer number and Item number and the rank of that cell is expressed as the rank with the Items and the Customer.

RoyBzer.xlsx
ABCDEFGHIJKLM
1Item 1Item 2Item 3Item 4Item 5Item 6Item 7CustItemCust RankItem Rank
2Cust 1483294335019583324
3Cust 237117170559384
4Cust 355738056333982
5Cust 444463045193433
6Cust 518631795259670
7Cust 6782010092454617
8Cust 725799677599353
9Cust 853496415376234
Sheet1
Cell Formulas
RangeFormula
B1:H1B1="Item "&COLUMN()-1
L2L2=RANK.EQ(INDEX(\$B\$2:\$H\$9,\$J2,\$K2),OFFSET(\$A\$1,\$J2,1,,COLUMNS(\$B\$1:\$H\$1)))
M2M2=RANK.EQ(INDEX(\$B\$2:\$H\$9,\$J2,\$K2),OFFSET(\$A\$1,1,\$K\$2,ROWS(\$A\$2:\$A\$9)))
A2:A9A2="Cust "&ROW()-1

#### Roybzer

##### New Member
Hi RoyZber,

I'm not sure I'm following correctly but do you mean the RANK?

Here you specify the Customer number and Item number and the rank of that cell is expressed as the rank with the Items and the Customer.

RoyBzer.xlsx
ABCDEFGHIJKLM
1Item 1Item 2Item 3Item 4Item 5Item 6Item 7CustItemCust RankItem Rank
2Cust 1483294335019583324
3Cust 237117170559384
4Cust 355738056333982
5Cust 444463045193433
6Cust 518631795259670
7Cust 6782010092454617
8Cust 725799677599353
9Cust 853496415376234
Sheet1
Cell Formulas
RangeFormula
B1:H1B1="Item "&COLUMN()-1
L2L2=RANK.EQ(INDEX(\$B\$2:\$H\$9,\$J2,\$K2),OFFSET(\$A\$1,\$J2,1,,COLUMNS(\$B\$1:\$H\$1)))
M2M2=RANK.EQ(INDEX(\$B\$2:\$H\$9,\$J2,\$K2),OFFSET(\$A\$1,1,\$K\$2,ROWS(\$A\$2:\$A\$9)))
A2:A9A2="Cust "&ROW()-1

Yes, that's exactly what I'm looking for.

I knew there had to be a simple solution.

I had been working on a ">=" countif workaround, but this is definitely more elegant.

Thanks

Replies
2
Views
140
Replies
8
Views
108
Replies
0
Views
57
Replies
10
Views
184
Replies
0
Views
112

1,147,482
Messages
5,741,409
Members
423,657
Latest member
Medrok2021

### 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.

### Which adblocker are you using?

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

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