excel - Checking for different values associated with a similar descriptor entered multiple times in a list -
i have 2 sheets in workbook, 1 "summary", other "enrolments". in "enrolments" have list of individual entries, outlining classes student has enrolled in, identified id number , course code, example:
b 1. id course code 2. 123456 225.885 3. 123456 887.112 4. 123456 778.560 5. 901201 887.112 6. 902101 555.123 7. 987654 225.885 8. 100001 887.112
in "summary" have table showing student number , table showing each course. so:
b c d e 1. .............225.885......887.112.....778.560....555.123 2. 123456 3. 901201 4. 987654 5. 100001
what want able write script or formula search student id in "summary" list, check , see classes student enrolled in in "enrolments", put check in each box student enrolled in, in table on "summary" sheet.
i have tried had formulas using nested if , vlookup check enrolment , if index/match nested formulas putting formula in each cell of courses (i.e. b2:d5):
=if(index(enrolments!$a$2:$h$10,match(summary!$a2,enrolments!$a$2:$a$10,0))=b$1,"x"," ")
but every 1 have tried, looks @ first instance of id number in list , not subsequent entries. guess functions not way go... there way use vba script force formula repeat function entries? or function have not tried?
i joseph's answer, since had worked up, , in event pivottable (which put on separate sheet), acceptable:
- 1) in field list drag id numbers row labels,
2) drag course codes column labels,
3) drag either id numbers or course codes values,
- 4) [optional] turn grand totals off, , set layout report tabular form
- 5) change field value setting count,
- 6) select entire range of values inside pivottable,
- 7) format cells using "select cells contain" option,
- 8) make sure boxes show "cell value", "equal to", "1",
- 9) format select "custom" , in box marked type type letter "x",
- 10) select "ok", "ok", , "ok".
Comments
Post a Comment