Result lists for multiple conditions

Coach_KM

New Member
Joined
Jul 14, 2023
Messages
8
Office Version
  1. 365
Platform
  1. Windows
I am having a hard time figuring out the nested formulas to solve this. In short I would like a worksheet with a list of all events a participant is in.

I have a worksheet that has all of the participants names in a single column and I would like to add a column that returns the event name from column C , for every event that person is in. There may be multiple events for each person, those events are marked with an "a", "b", "c", "d". That list could be seperate cells or a single, doesn't really matter. The names in row 1 are dynamic and are sorted by another worksheet so the formula would need to be flexible.

I understand index and match and lookup functions pretty well, but I just can't figure out the way to put them all together.

example:
Aireth L : Womens AA-A 8+ / Womens D 8+
Alex N : Mens C 1x

NW Regionals 2024.xlsx
ABCDEFGHIJK
12024 NW Masters RegionalsAireth LAlex NCarly MCharles SCharlotte CClaudia LKelley W
23322113
3Saturday2121112
4Sunday1201001
5#Event
6
7SATURDAY
844Womens AA-A 2x
949Mens C 4+
1050Womens C 4xB
1156Mens B 2x
1257Womens AA-A 8+AAA
1358Mens D 8+
1459Womens D 2xB
1561Mixed AA 2x
1662Womens B 4+
1768Mixed B 8+
1869Mens C 1xA
1971Mens AA-A 4+
2073Womens C 2-
2176Womens AA-A 4x
2279Mixed D 8+
2380Mixed C 8+
2483Mens D 2xB
2585Womens D 8+B
2686Mens AA-B 8+
2788Womens B 2xB
2889Mixed C 4+
2991Mens AA-B 2-
3092Womens C 1x
3194Mens A 1x
3295Womens AA-A 2-
3396Mens D 4+
3497Womens D 4xB
3598Mixed B 2x
3699Mixed AA-A 4+
37100Womens C 8+
38SUNDAY
Race schedule
Cell Formulas
RangeFormula
E2:K2E2=SUM(E3:E4)
E3:K3E3=COUNTIF(E$8:E$37,"a")+COUNTIF(E$8:E$37,"b")+COUNTIF(E$8:E$37,"c")+COUNTIF(E$8:E$37,"d")
E4:K4E4=COUNTIF(E$39:E$79,"a")+COUNTIF(E$39:E$79,"b")+COUNTIF(E$39:E$79,"c")+COUNTIF(E$39:E$79,"d")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E2:K4Cell Value="no"textYES
E8:K37Expression=E$3="NO"textNO
E7:K79Cell Value="A"textNO
E7:K79Cell Value="B"textNO
E7:K79Cell Value="C"textNO
E7:K79Cell Value="D"textNO
E7:K79Cell Value="E"textNO
E7:K79Cell Value="F"textNO
E2:K4Cell Value=1textNO
E2:K4Cell Value=2textNO
E2:K2Cell Value=3textNO
E2:K2Cell Value=4textNO
E3:K4Cell Value=3textNO
E3:K4Cell Value>3textNO
E7:K79Cell Valuecontains "(c)"textNO
E4:K4Expression=AND(E4="no",COUNTIF(E39:E79,"<>""")-COUNTIF(E39:E79,"")>0)textNO
E2:K2Cell Value>4textNO
E3:K3Expression=AND(E3="no",COUNTIF(E8:E37,"<>""")-COUNTIF(E8:E37,"")>0)textNO
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
See cell M8. Try:
Book2
ABCDEFGHIJKLM
12024 NW Masters RegionalsAireth LAlex NCarly MCharles SCharlotte CClaudia LKelley W
22121112
3Saturday2121112
4Sunday0000000
5#Event
6
7SATURDAY
844Womens AA-A 2xAireth L: Womens AA-A 8+, Womens D 8+
949Mens C 4+Alex N: Mens C 1x
1050Womens C 4xBCarly M: Womens C 4x, Womens B 2x
1156Mens B 2xCharles S: Mens D 2x
1257Womens AA-A 8+AAACharlotte C: Womens AA-A 8+
1358Mens D 8+Claudia L: Womens AA-A 8+
1459Womens D 2xBKelley W: Womens D 2x, Womens D 4x
1561Mixed AA 2x
Sheet4
Cell Formulas
RangeFormula
E2:K2E2=SUM(E3:E4)
E3:K3E3=COUNTIF(E$8:E$37,"a")+COUNTIF(E$8:E$37,"b")+COUNTIF(E$8:E$37,"c")+COUNTIF(E$8:E$37,"d")
E4:K4E4=COUNTIF(E$39:E$79,"a")+COUNTIF(E$39:E$79,"b")+COUNTIF(E$39:E$79,"c")+COUNTIF(E$39:E$79,"d")
M8:M14M8=LET(names,TOCOL(E1:K1),BYROW(names,LAMBDA(name,name & ": " & TEXTJOIN(", ",TRUE,IF(FILTER(E8:K37,E1:K1=name)<>"",C8:C37,"")))))
Dynamic array formulas.
 
Upvote 0
Didn't really need the LET() above.
Excel Formula:
=BYROW(TOCOL(E1:K1),LAMBDA(name,name & ": " & TEXTJOIN(", ",TRUE,IF(FILTER(E8:K37,E1:K1=name)<>"",C8:C37,""))))
 
Upvote 0
Solution
That is amazing @Cubist . Thank you!

I forgot to mention that all of the values in the grid E8:K37 are formulas that result in either a "" if not true or "a,b,c,d" if true. I simplified the mini sheet because the data for that grid comes from another worksheet. So I'm only getting the names result, but I understand why now.

If it helps the formula is:
=IFERROR(IF(COUNTIF(INDIRECT($I10&"a"),AL$2),"A",IF(COUNTIF(INDIRECT($I10&"B"),AL$2),"B",IF(COUNTIF(INDIRECT($I10&"C"),AL$2),"C",IF(COUNTIF(INDIRECT($I10&"D"),AL$2),"D","")))),"")
There are columns missing from the mini sheet that work to break out the event name, so this formula doesn't quite jive with what's posted.
 
Upvote 0
I forgot to mention that all of the values in the grid E8:K37 are formulas that result in either a "" if not true or "a,b,c,d" if true. I simplified the mini sheet because the data for that grid comes from another worksheet. So I'm only getting the names result, but I understand why now.
The "" results from formulas should've still work.

There are columns missing from the mini sheet that work to break out the event name, so this formula doesn't quite jive with what's posted.
Can you post what the actual sheet look like?
 
Upvote 0
I sorted it out. I made a mistake when changing the ranges to the actual data. It's working beautifully.
Thank you again.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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