Weighted average of non-adjacent columns that excludes blanks

HinesKetchup

New member
Joined
Sep 26, 2024
Messages
1
Reaction score
0
Points
1
Excel Version(s)
2408
Hello, I need to calculate a weighted average that does not count blank cells as zeroes but instead excludes them from the average. I think I've figured out how to do this using sumproduct, however the added caveat is that the columns are non-adjacent (this is necessary due to other factors and cannot be changed). Is there any way to make this work?

Attaching a simple example worksheet.
 

Attachments

  • Excel Sample Data.xlsx
    16 KB · Views: 2
In row 2, something along the lines of:
Code:
=AVERAGE(FILTER($B$1:$H$1*$B2:$H2,($B$1:$H$1<>"")*($B2:$H2<>"")))
copied down.
Maybe AVERAGE isn't what you need wrapping the formula; try looking at the results without it.
 
Back
Top