Vlookup in a range and summarize each total

david_cc

New Member
Joined
Jan 20, 2017
Messages
12
Hello guys,

Can someone help me with this case?

I want to sum all impressions per item in the LOOKUP list. The Input Name often contain others words which can be before or after the city name. Also there can be a difference in capital letter and small letter for city names. Please see the example:

INPUTImpressionsLOOKUPOUTPUT
keyword 1 + Paris2
keyword 2 + Paris1Paris10
keyword 3 + Paris3Bordeaux17
keyword 4 + Paris4Marseile15
keyword 1 + Bordeaux3
keyword 2 + Bordeaux3
keyword 3 + Bordeaux5
keyword 4 + Bordeaux6
keyword 1 + Marseile3
keyword 2 + Marseile4
keyword 3 + Marseile5
keyword 4 + Marseile3

<tbody>
</tbody>

Looking forward to some replies :)

best!
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Try


Excel 2010
ABCDE
1INPUTImpressionsLOOKUPOUTPUT
2keyword 1 + Paris2
3keyword 2 + Paris1Paris10
4keyword 3 + Paris3Bordeaux17
5keyword 4 + Paris4Marseile15
6keyword 1 + Bordeaux3
7keyword 2 + Bordeaux3
8keyword 3 + Bordeaux5
9keyword 4 + Bordeaux6
10keyword 1 + Marseile3
11keyword 2 + Marseile4
12keyword 3 + Marseile5
13keyword 4 + Marseile3
Sheet4
Cell Formulas
RangeFormula
E3=SUMIF(A:A,"*"&D3&"*",B:B)
 
Last edited:
Upvote 0
Try

Excel 2010
ABCDE
1INPUTImpressionsLOOKUPOUTPUT
2keyword 1 + Paris2
3keyword 2 + Paris1Paris10
4keyword 3 + Paris3Bordeaux17
5keyword 4 + Paris4Marseile15
6keyword 1 + Bordeaux3
7keyword 2 + Bordeaux3
8keyword 3 + Bordeaux5
9keyword 4 + Bordeaux6
10keyword 1 + Marseile3
11keyword 2 + Marseile4
12keyword 3 + Marseile5
13keyword 4 + Marseile3

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet4

Worksheet Formulas
CellFormula
E3=SUMIF(A:A,"*"&D3&"*",B:B)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

[/Nice Thanks a lot! Now I have the case that some city names look quite the same. For example:

Saint Malo
Saint Malon sur mel
Saint malo en donziois

How can I change the formula to only SUM the total of every seperate city?

Thanks in advance!
 
Upvote 0
Nice Thanks a lot! Now I have the case that some city names look quite the same. For example:

Saint Malo
Saint Malon sur mel
Saint malo en donziois

How can I change the formula to only SUM the total of every seperate city?

Thanks in advance!

As far as I know, in this application, there is no way to tell "blahblah Saint Malo blahblah" apart from "blahblah Saint Malo sur mel blahblah" in one formula.
 
Upvote 0

Forum statistics

Threads
1,215,532
Messages
6,125,367
Members
449,221
Latest member
chriscavsib

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