Reference item with highest value

ParkourAngel

New Member
Joined
Apr 19, 2024
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
index(a:a, match(large(b:b, 2), b:b,0))
This is the exact formula I need, but I can't figure out what a:a and b:b would be? I want to show the item with the highest total, would also like to show (in the same cell) what that total is. In a separate cell I'd like to show what the item with the 2nd highest total, and so on. Also, how can I make this dynamic to where it works the same no matter the changes in size of the pivot table? The name of the pivot table is "shortage" Thanks!!

1713510453438.png
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
try this:
-------------------
Book1
ABCDEF
1rtitem 1item 2item 3
23
36item 1 -2000
48item 2 -1500
5111000item 3 -1000
615
7211500
834
9352000
1036
11total200015001000
Sheet2
Cell Formulas
RangeFormula
F3F3=CONCAT(INDEX($1:$1, MATCH(LARGE($11:$11,1), $11:$11,0))," -",LARGE($11:$11,1))
F4F4=CONCAT(INDEX($1:$1, MATCH(LARGE($11:$11,2), $11:$11,0))," -",LARGE($11:$11,2))
F5F5=CONCAT(INDEX($1:$1, MATCH(LARGE($11:$11,3), $11:$11,0))," -",LARGE($11:$11,3))
B11:D11B11=SUM(B2:B10)
 
Upvote 0
try this:
-------------------
Book1
ABCDEF
1rtitem 1item 2item 3
23
36item 1 -2000
48item 2 -1500
5111000item 3 -1000
615
7211500
834
9352000
1036
11total200015001000
Sheet2
Cell Formulas
RangeFormula
F3F3=CONCAT(INDEX($1:$1, MATCH(LARGE($11:$11,1), $11:$11,0))," -",LARGE($11:$11,1))
F4F4=CONCAT(INDEX($1:$1, MATCH(LARGE($11:$11,2), $11:$11,0))," -",LARGE($11:$11,2))
F5F5=CONCAT(INDEX($1:$1, MATCH(LARGE($11:$11,3), $11:$11,0))," -",LARGE($11:$11,3))
B11:D11B11=SUM(B2:B10)
This works great thank you so much!! How can I match the highest numerical value for item 1 if the rows are dynamic? The amount of rows (Rt) change (max up to 33) according to how many different items it has. I tried just extending the match all the way down to after the 33rd Rt since I know I wont have more than that at any given time. This works great but this means I can't use all that empty space below this data. Also, I am using a pivot table so it refreshes and moves.
 
Upvote 0
here, try this. you may need to adjust the columns used and the search terms, but this gave me the same conclusion. i added an extra row and column to the pivot to show concept
-----------------------
multiple posts solutions-v3.xlsm
ABCDEF
1Sum of value
2item 1item 2item 3item 4
33
46item 1 -2000
58item 2 -1500
6111000item 3 -1000
715500
8211500
934
10352000
1136
1218
13 Total200015001000500
item w high value pivot
Cell Formulas
RangeFormula
F4F4=CONCAT( INDEX( INDIRECT(MATCH("Item*",B:B,0)&":"&MATCH("Item*",B:B,0)), MATCH( LARGE(INDIRECT(MATCH("Total",A:A)&":"&MATCH("Total",A:A)),1), INDIRECT(MATCH("Total",A:A)&":"&MATCH("Total",A:A)),0)), " -", LARGE(INDIRECT(MATCH("Total",A:A)&":"&MATCH("Total",A:A)),1))
F5F5=CONCAT(INDEX(INDIRECT(MATCH("Item*",B:B,0)&":"&MATCH("Item*",B:B,0)), MATCH(LARGE(INDIRECT(MATCH("Total",A:A)&":"&MATCH("Total",A:A)),2), INDIRECT(MATCH("Total",A:A)&":"&MATCH("Total",A:A)),0))," -",LARGE(INDIRECT(MATCH("Total",A:A)&":"&MATCH("Total",A:A)),2))
F6F6=CONCAT(INDEX(INDIRECT(MATCH("Item*",B:B,0)&":"&MATCH("Item*",B:B,0)), MATCH(LARGE(INDIRECT(MATCH("Total",A:A)&":"&MATCH("Total",A:A)),3), INDIRECT(MATCH("Total",A:A)&":"&MATCH("Total",A:A)),0))," -",LARGE(INDIRECT(MATCH("Total",A:A)&":"&MATCH("Total",A:A)),3))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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