Sumproduct if other cell has text

TrojanMan

New Member
Joined
Nov 23, 2017
Messages
2
Hi all! Love the forum and always get my questions answered through a search, but cannot seem to find an exact answer for what I'm looking for this time.

I want to do a sumproduct of the values in columns A*B only if there is text in column C (not blank).

I've tried a bunch of variations but I can't seem to get it to work without getting the VALUE error.
I've checked and there is no issues when I sumproduct(A,B) but I can't seem to get anything to work when I want to include the reference to C.

Please advise!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Welcome to Mr Excel forum

Try something like this - adjust the ranges
=SUMPRODUCT(A2:A100,B2:B100,--(C2:C100<>""))

M.
 
Upvote 0
Hi TrojanMan.

Is the below what you're looking for? It summed the cells for me into D2 when I tested it.

=IF(ISBLANK(C2),"",SUMPRODUCT(A2:B2))
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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