Calculating weighted average excluding blank cells

mflatt23

New Member
Joined
Jun 2, 2015
Messages
16
Hi everyone,

I have a question that I've been trying to figure out and hoping the community might have some tips. For my individual stock portfolio, I'm trying to calculate a weighted average in cell D21 that excludes cell C6 and D6 from the weighted average calculation (SOFI). How can I do this using the SUMPRODUCT formula in the screenshot below? Or is there another equation that fits better in this situation? I've tried searching online, but haven't found anything that works exactly as I need.

Thank so much!
 

Attachments

  • Screenshot_1.png
    Screenshot_1.png
    40 KB · Views: 10

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi

Mappe8
ABC
22,2%22,0%
32,2%-1,0%
40,8%36,0%
5SOFI0,9%9,0%
61,4%32,0%
72,0%13,0%
81,2%6,0%
91,0%33,0%
102,2%26,0%
111,6%41,0%
121,2%40,0%
131,1%-2,0%
14
1520,982%
Tabelle1
Cell Formulas
RangeFormula
C15C15=SUMPRODUCT(B2:B13,C2:C13,--(A2:A13<>"SOFI"))/SUMIFS(B2:B13,A2:A13,"<>SOFI")
 
Upvote 1

Forum statistics

Threads
1,215,076
Messages
6,122,983
Members
449,092
Latest member
Mr Hughes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top