How do I multiply 2 cells if a 3rd contains certain text

Casber

New Member
Joined
Feb 16, 2018
Messages
2
Hi

I'm trying to find a formula that where row# in Col C =1 AND same row Col A=Q1 I sum the cells in Col B from those rows

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Col A
[/TD]
[TD]Col B
[/TD]
[TD]Col C
[/TD]
[/TR]
[TR]
[TD]Row A
[/TD]
[TD]Q1
[/TD]
[TD]5
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]Row B
[/TD]
[TD]Q1
[/TD]
[TD]2
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Row C
[/TD]
[TD]Q2
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]Row D
[/TD]
[TD]Q1
[/TD]
[TD]6
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]Row E
[/TD]
[TD]Q4
[/TD]
[TD]3
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

In my spreadsheet I have to repeat the formula for different cols - A & B would remain constant but C could change.

Col C will only ever include 1 or blank

So far I'd come up with (from web searches - I have no idea!): =SUMIF (A2:A70,"*"&E72&"*",SUMPRODUCT(E2:E70,F2:F70)) but this returns a formula error.

Thanks in advance for any help.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Re: Formula help: How do I multiply 2 cells if a 3rd contains certain text

Assuming you meant Row 1, Row 2, etc. instead of Row A, Row B, etc., give this formula a try...

=SUMIFS(B1:B5,A1:A5,"Q1",C1:C5,1)

Change all of the 5's to the row number of the last cell with data in it.
 
Upvote 0
Re: Formula help: How do I multiply 2 cells if a 3rd contains certain text

:grin: Thank you. That's exactly what I wanted
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,274
Members
452,628
Latest member
dd2

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