Multi-worksheet get max value and position with text parameter

stealthK9

New Member
Joined
Mar 30, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet with 6 worksheets. The worksheet quantity will not change. Each worksheet can only name a person once. But each person can be on multiple worksheets. There is one column that has numbers in it ranging from -10 to 10. I want to create a rankings worksheet (a 7th) that has a list of each person on the 6 other worksheets. This worksheet needs to search the largest value from the 6 other worksheets for each person. In addition, it needs to return that person's role that had the largest value.

Basically since my range includes negative values, the max function will not work.

=MAX(MAXIFS(PosA[Grade],PosA[Name],[@Name]), MAXIFS(PosB[Grade],PosB[Name],[@Name]), MAXIFS(PosC[Grade],PosC[Name],[@Name]), MAXIFS(PosD[Grade],PosD[Name],[@Name]), MAXIFS(PosE[Grade],PosE[Name],[@Name]), MAXIFS(PosF[Grade],PosF[Name],[@Name]))

To get the person's position where the max value came from - some sort of index or match seems appropriate, but I've struggled to figure out where to start.
 

Attachments

  • 2023-03-30 15_02_28-Sample.xlsx - Excel.png
    2023-03-30 15_02_28-Sample.xlsx - Excel.png
    58.3 KB · Views: 6
  • 2023-03-30 15_02_45-Sample.xlsx - Excel.png
    2023-03-30 15_02_45-Sample.xlsx - Excel.png
    18.2 KB · Views: 7
  • 2023-03-30 15_02_51-Sample.xlsx - Excel.png
    2023-03-30 15_02_51-Sample.xlsx - Excel.png
    17.9 KB · Views: 6

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi & welcome to MrExcel.
How about for the position
Excel Formula:
=LET(v,VSTACK(PosA,PosB,PosC,PosD),INDEX(SORT(FILTER(v,INDEX(v,,2)=[@Name]),4,-1),3,1))
 
Upvote 0
While not ideal, I manually pasted values only from the 6 worksheets into one hidden worksheet and sorted by grade. Then when I do index-match to find the name, it finds the first which is the largest grade and the position with that grade.
 
Upvote 0
Did you try the formula I suggested?
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,243
Members
449,075
Latest member
staticfluids

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