"VLOOKUP if cell contains" help

bteeter25

New Member
Joined
Jun 19, 2018
Messages
1
This may be a super-easy question but I'm a relative beginner trying to find a quicker way to code credit card statements. I want to use a formula to autofill a column based on keywords in the cell to the left. For example if the credit card purchase is UBER TRIP X3HG8, I want Excel to see "Uber", which I would have in a table on the next sheet next to 55110, the Account Code for Ground Transportation, and fill it in.Here's what I have:Date | Description | Account Code | Amount_______________________________________________6/11/18 | UBER TRIP X3HG8 | (formula needed) | $25.00I'd have a full table on the next sheet with common words like Uber, Lyft, taxi, Airlines, Restaurant, Bar, Hotel, monthly subscriptions. etc. so that every month I just copy the new statement and I can auto-fill 90% of the statement.Any suggestions? Thanks in advance!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Something like...

=VLOOKUP("*"&X2&"*",Table,3,0)

where X2 houses a look up value like uber or lyft, etc. The formula brings back a result value from the 3rd column of Table.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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