Create list of cells from one column that matches one criteria

mborschm

New Member
Joined
Feb 22, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi All!

I work for a university and have done an audit on subjects and the specific skills required for that subject. I have a table that shows the subject's code, the skill required and when during the term their subject should receive support (before an assessment item that requires that skill).

A simplified version is below:

Subject CodeReport WritingEssay WritingOral Presentations
BUS100Week 2Week 5
ITC105Week 3Week 7
HRM304Week 11Week 2

Essentially, I want Excel to look for all the instances where "week 2" is mentioned, and return a list like this: (colour coded above for clarity)

Week 2BUS100, HRM304

Ideally with a count of the subjects that need to be attended that week. The blanks would mean that that skill is not relevant to the subject. I would then do that process for all the weeks.

The subject codes are the first column, so I don't know is some kind of advanced VLOOKUP could work here? Hope my explanation makes sense. I just want to see visually which subjects correlate to which weeks so I can plan for them.

I'm quite unfamiliar with Excel terms so please explain as you would to a beginner haha

Thank you!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
maybe this?

Book1
ABCD
1Subject CodeReport WritingEssay WritingOral Presentations
2BUS100Week 2Week 5
3ITC105Week 3Week 7
4HRM304Week 11Week 2
5
6WeekCountSubject1Subject2
7Week 1  
8Week 22BUS100HRM304
9Week 31ITC105
10Week 4  
11Week 51BUS100
12Week 6  
13Week 71ITC105
14Week 8  
15Week 9  
16Week 10  
17Week 111HRM304
Sheet1
Cell Formulas
RangeFormula
B7:B17B7=SUMPRODUCT(($B$2:$B$4=A7)+($C$2:$C$4=A7)+($D$2:$D$4=A7))
C7,C9:C17,C8:D8C7=TRANSPOSE(FILTER($A$2:$A$4,($B$2:$B$4=A7)+($C$2:$C$4=A7)+($D$2:$D$4=A7),""))
 
Upvote 0
Hi & welcome to MrExcel.
Another option
+Fluff 1.xlsm
ABCDEFGHI
1Subject CodeReport WritingEssay WritingOral Presentations
2BUS100Week 2Week 5Week 1 
3ITC105Week 3Week 7Week 22BUS100, HRM304
4HRM304Week 11Week 2Week 31ITC105
5Week 4 
6Week 51BUS100
7Week 6 
8
Primary
Cell Formulas
RangeFormula
H2,H5,H7,H6:I6,H3:I4H2=LET(m,MMULT(--($B$2:$D$4=G2),SEQUENCE(COLUMNS($B$2:$D$2),,,0)),s,SUM(m),IF(s=0,"",CHOOSE({1,2},s,TEXTJOIN(", ",,FILTER($A$2:$A$4,m>0,"")))))
 
Upvote 0
Thank you both very much!!! Either of those would work really well, thanks again :)
 
Upvote 0
Glad we could help & thanks fro the feedback.
 
Upvote 0
Hi & welcome to MrExcel.
Another option
+Fluff 1.xlsm
ABCDEFGHI
1Subject CodeReport WritingEssay WritingOral Presentations
2BUS100Week 2Week 5Week 1 
3ITC105Week 3Week 7Week 22BUS100, HRM304
4HRM304Week 11Week 2Week 31ITC105
5Week 4 
6Week 51BUS100
7Week 6 
8
Primary
Cell Formulas
RangeFormula
H2,H5,H7,H6:I6,H3:I4H2=LET(m,MMULT(--($B$2:$D$4=G2),SEQUENCE(COLUMNS($B$2:$D$2),,,0)),s,SUM(m),IF(s=0,"",CHOOSE({1,2},s,TEXTJOIN(", ",,FILTER($A$2:$A$4,m>0,"")))))
Hello, is there a way to have it also split it also based on another criteria? example "Pending", "Submitted", "In Progress"
 
Upvote 0
As this is a different question, please start a thread of your own. Thanks
 
Upvote 0
As this is a different question, please start a thread of your own. Thanks
Okay, i have started a new thread.


Can you help?
 
Upvote 0

Forum statistics

Threads
1,223,631
Messages
6,173,464
Members
452,516
Latest member
archcalx

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