Excel 2007: Extract Text String based on a Defined List of Criteria

justr8hr

New Member
Joined
May 16, 2013
Messages
21
Hello guys,
Please help this newbie.:confused:
I want to search the vendor/Text String (from bank statement)on the list below
.
KEEP THE CHANGE TRANSFER TO ACCT
POS #209700 AMERICAN RANCH 12-28 CUSTOMER 1311 PURCHASE ARTESIA CA
STARBUCKS CORP 12/29 PURCHASE 2 SANTA MONICA, CA
ID:BX0364457 IDS PROPERTY CAS DES: PREM
POS 4457311483 MACY'S EAST 483 12/29 CARD PURCHASE CERRITOS, CA
TARGET -30 CUSTOMER PURCHASE #007924 Cerritos CA
CARLTON HAIR INTERNATIO 12/28 CARD PURCHASE
KEEP THE CHANGE TRANSFER TO ACCT
POS CSMC CAFETERIA4007 12/27 PURCHASE

<tbody>
</tbody>
Initially I am doing this manually. I have decided to document my input so I don't have to input them one by one, only if I just know to use them as reference to automatically extract the text.
Here is My criteria list (the actual one is more comprehensive)

VENDOR
KIND/CATEGORY
American Ranch
Groceries
Anthem Blue
Health Insurance
Autozone
Car Repairs
Carlton Hair
Personal Care
Cheesecake Factory
Meals
Chevron
Fuel
CSMC CAFETERIA
Restaurants/Dining

<tbody>
</tbody>

Once I am able to extract the text based on the criteria, I can then put the right category.
VBA or Excel solutions will be greatly appreciated
Thanks a lot!
 
PROBLEM SOLVED!!!! Kudos, hiker95. Your VBA eventually worked. I experimented a bit and found that in order for the code not to return an error is that the target criteria string must have the same case and structure as the extracted text. Wohoooo!!!
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,215,737
Messages
6,126,563
Members
449,318
Latest member
Son Raphon

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