sum if question

C

carl

My data looks like so:

ColA ColB
abc441 10
def232 20
abc221 10
XYZ220 30

I would like to create a sumif that will look at the left
3 characters in ColA, compare to the below table , and if
there is a match, sum.

abc
def

Thank you in advance.
 
D

Domenic

Hi Carl,

Using your table, and assuming that Cell A7 contains abc and Cell A8
contains def, and so on, try putting this formula in B7 and copy down:

=SUMIF($A$1:$A$4,"abc*",$B$1:$B$4)

Hope this helps!
 
P

Peo Sjoblom

Assume you put abc in E1 and the example table in A1:B4


=SUMPRODUCT(--(LEFT($A$1:$A$4,3)=E1),$B$1:$B$4)

--
No private emails please, for everyone's
benefit keep the discussion in the newsgroup.


Regards,

Peo Sjoblom
 

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

Similar Threads

Sum of squares if condition 4
Conditional Filtering 2
LookUp Type Question 2
Or condition in SUMIF 4
Excel Macro or Formula Question 1
Automating a computation process 3
Look-Up Question 2
LookUp ?? Match ?? 2

Top