Determine Largeness of a Value Within Range

Roybzer

New Member
Joined
Apr 30, 2013
Messages
20
Office Version
  1. 365
Platform
  1. MacOS
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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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
 
Upvote 0
Solution
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
Hi Toadstool,

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
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,111
Members
453,021
Latest member
Justyna P

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