"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

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
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,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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