LEFT command with SUMIF

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to use the LEFT command along with the SUMIF command, for
instance I would like to sum together the ABC of these rows.

A B
ABCX 10
ABCY 11
ABCZ 12

So I would like to sum together any time SUMIF finds the left 3 in column A
= ABC.

Thanks.
 
Hi Duncan

One way
=SUMPRODUCT(--(LEFT(A1:A3,3)="ABC"),B1:B3)

Regards

Roger Govier
 

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

Back
Top