Excel VLOOKUP and Large commands

cachj011

New Member
Joined
Aug 13, 2021
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
I am trying to do a worksheet with a table of 2 columns: column 1 contains the names of my team students and column 2 contains the marks they obtain every event. I need this table to update both columns according to the marks with highest first. I managed to a point, until there are two students with the same amount of marks. At this point, while the number of students remain the same, if for example there are 3 students with the same marks, the table populate with 3 rows showing the same "first" name it finds and repeat that name for 3 times instead of changing the names. I am using the VLOOKUP function with embedded LARGE function. How can I go around it so that if there are more than 1 student with the same amount of marks, the table will show the next student's name not the first one for all the cells showing the same amount of marks? thanks to everyone.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Welcome to the MrExcel forum!

It's hard to tell without seeing the layout of your sheet, but maybe:

Book1 (version 1).xlsb
ABCDE
1StudentMarkStudentMark
2Ana60Giselle89
3Bob75Iris88
4Cyndi61Bob75
5Dan66Fred75
6Elaine61Dan66
7Fred75Cyndi61
8Giselle89Elaine61
9Hank61Hank61
10Iris88Ana60
11Jim50Jim50
Sheet7
Cell Formulas
RangeFormula
D2:D11D2=INDEX($A:$A,AGGREGATE(15,6,ROW($A$2:$A$11)/($B$2:$B$11=E2),COUNTIF(E$2:E2,E2)))
E2:E11E2=LARGE($B$2:$B$11,ROWS(E$2:E2))
 
Upvote 0
Thanks mate. I will try it out tomorrow as here is already late at night.

Joe
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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