Sumproduct to ignore text and ""


R

Ricky Pang

Hello Experts,
How would you modify this formula so that the text and ="" [blanks] in the
range of B1:B8 are ignored; thus, not producing a #Value! error?

=SUMPRODUCT((A1:A8="a")*(B1:B8))

Thanks in advance,
Ricky
 
Ad

Advertisements

R

Ricky Pang

Thanks Domenic,
That worked nicely.

Ricky

Domenic said:
Try...

=SUMPRODUCT(--(A1:A8="a"),B1:B8)

Hope this helps!

Ricky Pang said:
Hello Experts,
How would you modify this formula so that the text and ="" [blanks] in
the
range of B1:B8 are ignored; thus, not producing a #Value! error?

=SUMPRODUCT((A1:A8="a")*(B1:B8))

Thanks in advance,
Ricky
 
A

Aladin Akyurek

Ricky said:
Hello Experts,
How would you modify this formula so that the text and ="" [blanks] in the
range of B1:B8 are ignored; thus, not producing a #Value! error?

=SUMPRODUCT((A1:A8="a")*(B1:B8))

Thanks in advance,
Ricky

If this is not a question about the behavior of SumProduct with a
contrieved example...

=SUMIF((A1:A8,"a",B1:B8)

will suffice.
 
R

Ricky Pang

Hello again,
How would you expand on this formula (which excludes text and "") so that
multiple data columns ranging from B1:H8 would be included in the result
once the criteria of ="a" has been established? Presently, only the data in
B1:B8 works. I need to expand the range.

=sumproduct(--(A1:A8="a"),B1:B8)

Thanks in advance,
Ricky


Ricky Pang said:
Thanks Domenic,
That worked nicely.

Ricky

Domenic said:
Try...

=SUMPRODUCT(--(A1:A8="a"),B1:B8)

Hope this helps!

Ricky Pang said:
Hello Experts,
How would you modify this formula so that the text and ="" [blanks] in
the
range of B1:B8 are ignored; thus, not producing a #Value! error?

=SUMPRODUCT((A1:A8="a")*(B1:B8))

Thanks in advance,
Ricky
 
D

Domenic

Try...

=SUM(IF(A1:A8="a",B1:H8))

....confirmed with CONROL+SHIFT+ENTER, not just ENTER.

Hope this helps!
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top