Assign a Category Based on Partial Match

TheJax

New Member
Joined
Feb 3, 2013
Messages
38
Hi,

Hoping someone has a solution for this. An accounting client has me going crazy trying to get this done:

He has a list of categories:
Security
Sewar
Comcast
Gas
Water
(to name a few)

What he would like is to have Excel search the cell he enters a description (we'll say its c1) and if there is a partial match on any part of the description, assign it to the right category. So if he enters ADT PAYMENT, Excel would automatically put SECURITY in A1. Can this be done with a formula?

Thanks.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
What do you show in Excel that connects the cell value "ADT PAYMENT" with the category "SECURITY"? Nothing in the cell with the payment has a match (partial or otherwise) with the category.
 
Upvote 0
That is actually part of my question - How can I "connect" ADT to the category SECURITY and then have Excel search the description and apply the correct category.

Thanks!
 
Upvote 0
If your entries (ADT PAYMENT) are fairly generic, you may just want to consider a separate column entry for category. In order for Excel to "search" the cell information, you would need to have consistent entries. If the entries each month are very consistent, you could create a table with two columns. Column 1, for example, would be the entries (ADT PAYMENT would be one of those entries), and column 2 in that table would be Category. Then when tabulating information, all entries would be associated with a category. Without information (excel only? used for other software? payments only? etc. a lot of information is missing and that's a different type of question/help request), much of this seems to be beyond the purview of answering a question (imho), and seems more like you are needing the creation of a file/data structure.
 
Upvote 0
If your entries (ADT PAYMENT) are fairly generic, you may just want to consider a separate column entry for category. In order for Excel to "search" the cell information, you would need to have consistent entries. If the entries each month are very consistent, you could create a table with two columns. Column 1, for example, would be the entries (ADT PAYMENT would be one of those entries), and column 2 in that table would be Category. Then when tabulating information, all entries would be associated with a category. Without information (excel only? used for other software? payments only? etc. a lot of information is missing and that's a different type of question/help request), much of this seems to be beyond the purview of answering a question (imho), and seems more like you are needing the creation of a file/data structure.
Thanks! Appreciate the info.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

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