Make a list of recurring names in different sheets

edge37

Board Regular
Joined
Sep 1, 2016
Messages
67
Office Version
  1. 2021
Platform
  1. Windows
Hello again
I'd like to ask for your kind help on the following: I have a Gradebook in Excel. It is divided in 4 Periods, each in a different sheet (in the sample attached, there is the 1st Period in Sheet 1, 2nd Period would be in Sheet 2... and so on). Each period of the class includes a table that says EXEMPTION CANDIDATES. I use formulas to extract those students that have more than 95% in their grades.

These tables are in all 4 periods (meaning: 4 different sheets), but in period 4 I need also a new table (let's say in cells G4 and down) that checks all these exemption tables and can make a list of all students that appeared in all four tables of each period with at least 95%, so they could opt for an exam exemption. With the provided worksheet, the cell range I’m looking to analyze is the same throughout the whole workbook - E4:E10

For example, if the student Giuliana Melgar (student #9) appears in all 4 tables having a grade more than 95%, then she will be exempted from the exam and her name would appear in the new list. If Juan Carlos Gamero (student #13) appeared only three or less times in the tables then he can't be exempted and his name will not appear in thelist.

Can you help me, please?

Thanks
PRUEBA2.xlsm
ABCDEF
11st PERIODGRADE
2#STUDENT100%
31Alyson Paola Gómez Laínez80EXEMPTION CANDIDATES
42Any Camila Maltez Ubeda74Ariela Pacheco Rosales97
53Ariela Pacheco Rosales97Giuliana Melgar Castro95
64Bei-lin Arauz Estrada62Juan Carlos Gamero Jensen100
75Danely Mariela Gutierrez López64  
86Evelyn Rubí Castro Martínez5  
97Fernanda Gisele Aguilar Caballero53  
108Génesis Alejandra Irula Rodríguez58  
119Giuliana Melgar Castro95
1210Gloria Marcela Canales Cañadas70
1311Grace Marie Avila Guzmán54
1412Hector Arturo García Alvarado87
1513Juan Carlos Gamero Jensen100
SHEET 1
Cell Formulas
RangeFormula
E4:E10E4=IFERROR(INDEX(B:B,AGGREGATE(15,3,ROW(B$3:B$15)/($C$3:$C$15>=95),ROWS(E$13:E13))),"")
F4:F10F4=IFERROR(INDEX(C:C,AGGREGATE(15,7,ROW(C$3:C$15)/($C$3:$C$15>=95),ROWS(D$4:D4))),"")
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
With Excel 2021, you can use FILTER instead of the AGGREGATE structure you have now for your E4 formula. And the new G4 formula can also use FILTER. With only 4 sheets to consider, it's not too onerous to just list the sheets in the formula:

Book2
ABCDEFG
14th PERIODGRADE
2#STUDENT1
31Alyson Paola Gómez Laínez80EXEMPTION CANDIDATESEXEMPTION LIST
42Any Camila Maltez Ubeda74Ariela Pacheco Rosales97Juan Carlos Gamero Jensen
53Ariela Pacheco Rosales97Giuliana Melgar Castro95
64Bei-lin Arauz Estrada62Juan Carlos Gamero Jensen100
75Danely Mariela Gutierrez López64
86Evelyn Rubí Castro Martínez5
97Fernanda Gisele Aguilar Caballero53
108Génesis Alejandra Irula Rodríguez58
119Giuliana Melgar Castro95
1210Gloria Marcela Canales Cañadas70
1311Grace Marie Avila Guzmán54
1412Hector Arturo García Alvarado87
1513Juan Carlos Gamero Jensen100
Sheet4
Cell Formulas
RangeFormula
E4:F6E4=FILTER(B3:C50,C3:C50>=95,"")
G4G4=LET(a,INDEX(E4#,0,1),FILTER(a,COUNTIF(Sheet1!E4:E10,a)*COUNTIF(Sheet2!E4:E10,a)*COUNTIF(Sheet3!E4:E10,a),""))
Dynamic array formulas.
 
Upvote 0
Thank you very much for your answer, I'm still battling to make it work on my (more extended workbook). I wonder if you could help me introduce those formulas correctly in my extended gradebook example that I'm sending you. I stripped all the unnecessay info from it (unfortunately there's no apparent way to send you the complete file with all 4 sheets), all the cell ranges are the same for each period (sheet), the names of the sheets are 10A (1), 10A (2), 10A (3), and 10A (4). I could send the whole file if it was possible.

I appreciate your help. Thank you
PRUEBA 3.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAI
2
3
4
5
6
7period 4GRADE
8#STUDENTS87558751010X65%35%100%
91Alyson Paola Gómez Laínez9754447500810631780EXEMPTION CANDIDATESEXEMPTED FROM EXAM
102Any Camila Maltez Ubeda9754446500610601474Giuliana Melgar Castro95
113Ariela Pacheco Rosales9754447500810631780Juan Carlos Gamero Jensen100
124Bei-lin Arauz Estrada975204750051054862  
135Danely Mariela Gutierrez López074344750048461864  
146Evelyn Rubí Castro Martínez000000000000  
157Fernanda Gisele Aguilar Caballero95504470003946753  
168Génesis Alejandra Irula Rodríguez87402474004949958  
179Giuliana Melgar Castro97544475001010653095
1810Gloria Marcela Canales Cañadas8753347500610581270
1911Grace Marie Avila Guzmán87420470007847754
2012Kiara Michell Luna Molina4744047000410441357
2113Laura Balvin Ruiz9754447500710621577
2214Maria Fernanda Avelar Rapalo9754447500710621173
2315Allan Ramón Morales Erazo90522475004846753
2416Angel Eduardo Vásquez Orellana97544475001010652085
2517Carlos Manuel Trochez Cruz075444740059491564
2618Daniel Eduardo García Aguiluz8744247500910601373
2719Daniel Fernando Morel Paredes9744447500109632083
2820Diego Fernando Banegas Pineda9754447500610611778
2921Gabriel Isaac Meléndez Fernández 854444750079571370
3022Hector Arturo García Alvarado9754447500910642387
3123Juan Carlos Gamero Jensen975444750010106535100
3224Kenneth Said Ascencio Rodriguez87530475006954761
3325Kevin Eduardo Miranda Baca37420470002938846
3426Marco Antonio Guzman Sabillon975444750091064872
3527Nelson Omar Mejia Alvarado875444700099572380
3628Richard Alest Caceres Mejia 9754447500710621274
3729Wilmer David García Alcántara975404500079502171
38
10A (4)
Cell Formulas
RangeFormula
AF10:AF16AF10=IFERROR(INDEX(B:B,AGGREGATE(15,3,ROW(B$9:B$38)/($R$9:$R$38>=95),ROWS(AF$19:AF19))),"")
AG10:AG16AG10=IFERROR(INDEX(R:R,AGGREGATE(15,7,ROW(R$9:R$37)/($R$9:$R$37>=95),ROWS(AE$10:AE10))),"")
 
Upvote 0
I can't download files, but I took your sheet from post 3 and copied it 4 times, and I changed a few grades for testing. Here's what I came up with:

Book1
ABCDEFGHIJKLMNOPQRAEAFAGAHAI
1
2
3
4
5
6period 4GRADE
7#STUDENTS87558751010X0.650.351
81Alyson Paola Gómez Laínez9754447500810631766EXEMPTION CANDIDATESEXEMPTED FROM EXAM
92Any Camila Maltez Ubeda9754446500610601474Giuliana Melgar Castro95Giuliana Melgar Castro
103Ariela Pacheco Rosales9754447500810631780Juan Carlos Gamero Jensen100Juan Carlos Gamero Jensen
114Bei-lin Arauz Estrada975204750051054862Wilmer David García Alcántara97
125Danely Mariela Gutierrez López074344750048461864
136Evelyn Rubí Castro Martínez00000000000000
147Fernanda Gisele Aguilar Caballero95504470003946753
158Génesis Alejandra Irula Rodríguez87402474004949958
169Giuliana Melgar Castro97544475001010653095
1710Gloria Marcela Canales Cañadas8753347500610581270
1811Grace Marie Avila Guzmán87420470007847714
1912Kiara Michell Luna Molina4744047000410441357
2013Laura Balvin Ruiz9754447500710621577
2114Maria Fernanda Avelar Rapalo9754447500710621173
2215Allan Ramón Morales Erazo90522475004846753
2316Angel Eduardo Vásquez Orellana97544475001010652085
2417Carlos Manuel Trochez Cruz075444740059491564
2518Daniel Eduardo García Aguiluz8744247500910601373
2619Daniel Fernando Morel Paredes9744447500109632088
2720Diego Fernando Banegas Pineda9754447500610611778
2821Gabriel Isaac Meléndez Fernández 854444750079571370
2922Hector Arturo García Alvarado9754447500910642387
3023Juan Carlos Gamero Jensen975444750010106535100
3124Kenneth Said Ascencio Rodriguez87530475006954761
3225Kevin Eduardo Miranda Baca37420470002938846
3326Marco Antonio Guzman Sabillon975444750091064872
3427Nelson Omar Mejia Alvarado875444700099572380
3528Richard Alest Caceres Mejia 9754447500710621274
3629Wilmer David García Alcántara975404500079502197
37
10A (4)
Cell Formulas
RangeFormula
AF9:AG11AF9=FILTER(CHOOSE({1,2},B8:B50,R8:R50),R8:R50>=95,"")
AI9:AI10AI9=LET(a,INDEX(AF9#,0,1),FILTER(a,COUNTIF('10A (1)'!AF8:AF20,a)*COUNTIF('10A (2)'!AF8:AF20,a)*COUNTIF('10A (3)'!AF8:AF20,a),""))
Dynamic array formulas.


I had to tweak the AF9 formula a bit to account for the name and grade columns not being adjacent, but it's still pretty basic. The AI9 formula is almost unchanged, except for the sheet name changes and the range changes. I have another version of it where you list the sheet names in some adjacent cells, and the formula uses that instead of hardcoding the sheet names in the formula. The formula is slightly shorter, but more complicated.

Hope this helps!
 
Upvote 0
Solution
Hi Eric W, I finally made it work, thank you very much for your help. Now I have a cool gradebook thanks to you.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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