SUMIF unmatched data

stevotsky

New Member
Joined
Oct 15, 2006
Messages
11
Hi,

Please help...

I would like to create sum data for vendors that are not alike...

For example,

Column1 Column2 Amount
wateryoux water $12
youaregreat great $1
greattnneess tinab $2
loowaterloo antique $3

I would like to do sumif(column1,**column2*",amount)

I have 10,000 data elements in column1, 500 in column2. All the data in column1 can be summarized in column2, just that they are not exact. So I am thinking I could say, if my formula looks in column1 and finds something that looks like column2, it should sum it. Makes sense?

Thanks for your help.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Somewhat unclear... In your example, what's the answer that you're looking for?
 
Upvote 0
Try this
Data in A1:C4:
Array formula(confirm CTRL+SHIF+ENTER)
in D1 copied down:
=SUMPRODUCT(--(ISNUMBER(SEARCH(B1,$A$1:$A$4))),--($C$1:$C$4))
 
Upvote 0
Try this
Data in A1:C4:
Array formula(confirm CTRL+SHIF+ENTER)
in D1 copied down:
=SUMPRODUCT(--(ISNUMBER(SEARCH(B1,$A$1:$A$4))),--($C$1:$C$4))

column1
alaska water ways
timbuktu highway
timbuktu roads
alaska-michigain
intercontinental airport inc
roads only inc

column 2
alaska water
timbuktu highways inc


column 3
200
300
400
150
63
71

For example, I would like a formula so that if, for example, column 2 contains alaska, then the formula will add 200 & 400 (the corresponding figures for items containing alaska per column 1)

I hope that is clearer.

Many thanks,

Steve
 
Upvote 0
Hi Steve,
I hope you meant "200+150",
This will take first word in string in cell B1 and match with column A
(confirm CTRL+SHIFT+ENTER)
=SUMPRODUCT(--(ISNUMBER(FIND(LEFT(B1,FIND(" ",B1)-1),$A$1:$A$6))),--($C$1:$C$6))
 
Upvote 0
A bit faster...

=SUMIF($A$1:$A$6,LEFT(B1,FIND(" ",B1)-1)&"*",$B$1:$B$6)

if the first word commonality holds for all records.
 
Upvote 0

Forum statistics

Threads
1,214,797
Messages
6,121,629
Members
449,041
Latest member
Postman24

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