r/googlesheets • u/WesternDig2347 • 27m ago
Unsolved Combining Sumproduct and If statements
Hi all, I will try to explain this as best as I can. I am working on a personal project involving data from movies I've watched over the past couple of years, and I am stuck attempting to create a formula for weighted averages. I need to find some way of nesting an IF, SUMPRODUCT, and/or AND/SUMIFS statement in such a manner that creates a weighted average of all values in the "score" column (using "number of ratings" as the weight), but only for those values whose corresponding "year" is between 1930 and 1939. I've tried just about every combination recommended to me, but nothing works. The only solution that returned a value at all was an IF(AND) statement nested within the AVERAGE.WEIGHTED formula, but I could not find a way to limit that to a particular year range, it would simply average all values in the "score" column regardless. If anyone has any suggestions or can point out something I am doing incorrectly, it would be greatly appreciated.








