Help with Grouping Data

loosefred

New Member
Joined
Jan 15, 2014
Messages
4
Hi guys,

The excel sheet I'm working on is a report sheet which shows me the performance of each individual keyword in my client's paid search campaign. The client is a van hire company with 66 locations in the UK and what I'd like to do is to automatically group the keywords so they are associated with a particular location. Part of my sheet looks like this:

KeywordTransactionsRevenueClicksImpressionsCost
+van +hire +aberdeenxxxxx
+van +hire +coventryxxxxx
+van +hire +nottinghamxxxxx
+van +hire +sheffieldxxxxx
+van +hire +milton +keynesxxxxx
van hire cardiffxxxxx
+van +hire +banburyxxxxx

<tbody>
</tbody>

What I would like to do is to have a column to show which location the keyword is associated with, based on a list of the different branches, so that it would look like this:

KeywordBranchTransactionsRevenueClicksImpressionsCost
+van +hire +aberdeenAberdeenxxxxx
+van +hire +coventryCoventryxxxxx
+van +hire +nottinghamNottinghamxxxxx
+van +hire +sheffieldSheffieldxxxxx
+van +hire +milton +keynesMilton Keynesxxxxx
van hire cardiffCardiffxxxxx
+van +hire +banburyBanburyxxxxx

<tbody>
</tbody>

This way, I can look at the performance of locations rather than that of individual keywords.

Is there a way of searching the text of the keyword to pull out the appropriate branch from a list, without having to create a huge =IF(ISNUMBER(SEARCH("aberdeen",A2)),"Aberdeen",IF(ISNUMBER(SEARCH(.... type formula?

Thanks very much in advance!

Loose Fred
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
loosefred,

Is the keyword always +van +hire + the branch ?

If not then can you give examples of other expected strings.
 
Upvote 0
Hi Tony,

The majority of them are - there are also keywords where the string of text is just van hire branch without the +'s. The +'s are there to show what 'match type' the keyword is, and when exported into excel makes things more awkward!

Thanks

Loose Fred
 
Upvote 0
Loose Fred,

Try this......


Excel 2007
ABC
1KeywordTransactions
2+van HIRE +ABerDEEnAberdeenx
3+van +hire +coventryCoventryx
4+van +hire +nottinghamNottinghamx
5+van +hire +sheffieldSheffieldx
6+van +hire +milton +keynesMilton Keynesx
7van hire cardiffCardiffx
8+van +hire +banburyBanburyx
Sheet3
Cell Formulas
RangeFormula
B2=PROPER(TRIM(RIGHT(SUBSTITUTE(SUBSTITUTE(LOWER(A2),"hire",REPT(" ",200)),"+"," "),100)))


Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,215,514
Messages
6,125,273
Members
449,220
Latest member
Excel Master

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