Forum Discussion
Looking up value in multiple rows
- Sep 06, 2024
With over 30,00 rows of data, the number of calculations to be performed is humongous, so I had to use a helper column. Without it, my fast PC completely bogged down.
In K2:
=AND(E2<>"Summer", OR(D2={"Student","Enrolled"}))
Fill down.
In J2:
=IF(AND(E2="Summer", D2="Student", COUNTIFS($B$2:$B$31195, B2, K2:K31195, TRUE)), "Yes", "No")
Fill down.
Workbook attached.
With over 30,00 rows of data, the number of calculations to be performed is humongous, so I had to use a helper column. Without it, my fast PC completely bogged down.
In K2:
=AND(E2<>"Summer", OR(D2={"Student","Enrolled"}))
Fill down.
In J2:
=IF(AND(E2="Summer", D2="Student", COUNTIFS($B$2:$B$31195, B2, K2:K31195, TRUE)), "Yes", "No")
Fill down.
Workbook attached.
- JennyHoA20181Sep 11, 2024Iron Contributor
Apologies for the delay, I was away. This is perfect, thank you!
May I ask, is it also possible to see, of the vales = "yes", what was their related school term semester in another column?
Also due to confidentiality if it's possible to delete the excel in your reply?
Many thanks to you!
- HansVogelaarSep 11, 2024MVP
In L2:
=IF(J2="Yes", TEXTJOIN(", ", TRUE, UNIQUE(FILTER($E$2:$E$31195, ($B$2:$B$31195=B2)*($E$2:$E$31195<>"Summer")*(($D$2:$D$31195="Student")+($D$2:$D$31195="Enrolled")), ""))), "")
Fill down.
I'll send you the workbook with this formula and with a couple of corrections. I removed the attachment from my earlier reply.