Hello, long-time reader, first-time poster,
I'm not sure if I can succinctly describe this issue, but a workbook is attached in case I fail.
I have a two-row matrix with variables LookupCode and ValuetoSum.
I also have a matrix LookupCode by SumCategory, with X's to indicate the LookUpCodes relevant to each value of SumCategory.
For each value of SumCategory, I want a sum of only the ValuetoSums associated with the LookupCodes indicated by this matrix.
Notes: I have to do this many times over, with various ValuetoSum vectors, so adding other columns or rows to the worksheet would not be elegant. I strongly prefer a solution within Excel without using Visual Basic.
It would be great if someone could help with this. Thank you very much!
Bookmarks