SumProduct/IF Formula That Excludes Blanks

acool

Board Regular
Joined
Feb 10, 2023
Messages
107
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone! I am currently trying to create a Sumproduct Formula that Excludes Blanks from its total calculation. More specifically, I am trying to exclude any values where there are blanks in Column B. As it currently stands, I am calculating the Total Sumproduct of Column C & A using the Formula Sumproduct(C2:C9, A2:A9), however I would like my sumproduct to exclude any values from its calculation where there is a blank in column B. Any help or insight would be greatly appreciated! Thank You!


1686082418530.png
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
N.B. You can post an extract of your information with the forum's tool named XL2BB.

T202306a.xlsm
ABCD
1UnitsMSRPCOGS
220105
32052.5
420126
5206
6206
720137
8207
9201514
10
11690690
12
2b
Cell Formulas
RangeFormula
C11C11=SUMPRODUCT(C2:C9,--(B2:B9>0), A2:A9)
D11D11=SUM(IF(B2:B9>0,A2:A9*C2:C9))
 
Upvote 0
Solution
N.B. You can post an extract of your information with the forum's tool named XL2BB.

T202306a.xlsm
ABCD
1UnitsMSRPCOGS
220105
32052.5
420126
5206
6206
720137
8207
9201514
10
11690690
12
2b
Cell Formulas
RangeFormula
C11C11=SUMPRODUCT(C2:C9,--(B2:B9>0), A2:A9)
D11D11=SUM(IF(B2:B9>0,A2:A9*C2:C9))
This did the trick thank you!
 
Upvote 0

Forum statistics

Threads
1,215,161
Messages
6,123,371
Members
449,097
Latest member
thnirmitha

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