Search for text to group into categories

imaguy77

New Member
Joined
Aug 26, 2008
Messages
21
Hi all,

Here's my problem:

I have a list of 1200 sub-accounts, and I want to group them into parent accounts Based on similar text with the sub-account name. For example, one vendor may have 30 different accounts that all have "Amazon" somewhere in the account name. Amazon India, Amazon China, Amazon.ca, etc. I'm envisioning somehow having a lookup table like the one below, and doing some sort of search function to see which parent category each account fits into. The second table's 2nd column would be the desired output based on subaccount name. Any idea how to do this?



Lookup table:
Search TextIDParent Category
Amazon1Amazon.com
B&N2Barnes & Noble
Pearson3Pearson

<tbody>
</tbody>

Data table:
SubaccountParent Account (this column I want to fill in like below):
Pearson-aPearson
Pearson-bPearson
Pearson-cPearson
Pearson-dPearson
Amazon ChinaAmazon.com
Amazon IndiaAmazon.com

<tbody>
</tbody>
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,681
Messages
5,838,762
Members
430,567
Latest member
carid

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
Top