Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 988

Sum specific cells from a column based on criteria from another sheet

$
0
0

I have three sheets. ScoreInputs, RawScores and ScoreMatrix.

ScoreInputs is basically a single column of raw input scores. Score Inputs

In ScoreMatrix, the first row is a list of score categories, then going down, a non-empty value if that question applies to that category. ScoreMatrix.

In RawScoreCalc I'm trying to do the proper summation of the values from ScoreInputs based on ScoreMatrix.

I've started with =MATCH(INDIRECT(ADDRESS(ROW() - 1, COLUMN() ) ), ScoreMatrix!$B1:$Z1) which will tell me which is the proper column to query from ScoreMatrix, and then =COUNTIF(INDIRECT(ADDRESS(2,MATCH(INDIRECT(ADDRESS(ROW() - 1, COLUMN() ) ), ScoreMatrix!$B1:$Z1))&":"&ADDRESS(200,MATCH(INDIRECT(ADDRESS(ROW() - 1, COLUMN() ) ), ScoreMatrix!$B1:$Z1))),"<>") will tell me the number of non-zero rows, but I'm unsure how to parlay that into summing the matching rows from ScoreInputs.

So for example, RawScoreCalc, based on the ScoreMatrix, LP1 should have the sum of cells ScoreInput!B6, ScoreInput!B8, ScoreInput!B10, etc. Which right now, I just did a static selection of the proper rows.


Viewing all articles
Browse latest Browse all 988

Trending Articles