So I'll keep it brief here as I've attached a Workbook which (I think!) demonstrates the problem more clearly than I can in just words; however just for completeness:
Basically (and putting the problem into a fictitious scenario to make it slightly more transparent:
- Imagine I have a group of students who have been working on various projects
- Each project would have a list of students who worked on it (in the form of integers separated by a number/pound/hash, e.g. 1#3#4#7)
- Each project would also have a score associated with it
- I want to be able to provide a list of students that I want to consider (in the same format as before) and obtain the total score for all projects than any of them have worked on
- Notably I don't care if more than one student being considered on a project, or if it's just one, I only want to add that project total once
A few notes about how I'm looking to (ideally) solve the problem:
- I'm trying to avoid VBA; otherwise I need to jump through some admin hoops that I'd rather avoid for now!
- I'd like to avoid helper cells where possible; although normally I don't have an issue with them. This is mostly because the number of projects and the number of cases (combinations of students) are variable and I want this to be "plug-and-play" rather than needing modification if (for example) more cases are required
I've tried to solve the problem, and I felt like I was on the right lines but I can't work out how to get rid of the need for helper cell. The method involved converting the lists into arrays and then using a combination of OR, ISNUMBER and MATCH; however, frustratingly I could only get it to work when hard coding the arrays in (i.e. pointing them to cells containing the arrays didn't work as they'd just look at the first value in said arrays).
Hopefully I've covered everything needed either here or in the attached spreadsheet, but if I've missed anything (or not explained something well enough) please just let me know
Bookmarks