sum if question

  • Thread starter Thread starter carl
  • Start date Start date
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.
 
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!
 
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
Or condition in SUMIF 4
LookUp Type Question 2
Automating a computation process 3
Excel Macro or Formula Question 1
Look-Up Question 2
LookUp ?? Match ?? 2

Back
Top