Vlookup or Index/Match or ?

texaschai

New Member
Joined
Feb 4, 2014
Messages
34
Hi folks,
I am stuck and am hoping you can help.

I have given up on budgeting software and am attempting my own Excel version of a budget for my household. In a worksheet, I have downloaded all of our bank activity for the year. Many of the transactions are repetitive, but the bank reference includes the vendor name plus non-recurring reference numbers within the text string that vary based on the date of the transaction (so not just a payee name in other words). I was hoping to do a vlookup of sorts that would "read" the vendor name within all the other text and return the type of expense it is. For example, on sheet 1, I have the transactions. Let's say three of them look something like the below:

Trans Date
Payee
Amount
Description
01/01/16
REF#201601011544 CRAPPY CABLE CO CUST X251A
150.00
01/02/16
SUNSHINE MARKET REF 1216115QD5667
80.00
01/02/16
POS PUMP 4 MORRO BAY ACME FUEL STATION
20.00

<tbody>
</tbody>

On the second sheet, I have my "index" references, like this:

Vendor Name Ref
Exp Description
CRAPPY CABLE
Internet/Home Phone
ACME
Gasoline
SUNSHINE
Groceries
FRED'S GAS
Gasoline

<tbody>
</tbody>

What I want to do is look for the text string that appears in the second sheet under "Vendor Name Ref" located in the "Payee" column of the first sheet, and return the "Exp Description" located in the second sheet that matches that Vendor Name Ref and return it in the "Description" column (currently blank) on the first sheet. Kind of like a reverse vlookup with wildcards (I know that it's not possible to do a reverse vlookup with wildcards, so hoping some sort of index/match or array scenario would work?). I'm not as comfortable with arrays yet but feel fairly comfortable understanding most formulas provided they aren't VBA.

90% of the expenses we have will be to vendors we've used before, but adding the descriptions for each vendor's associated expense type manually every month is too time consuming so I'm hoping for a code to write that I can use whenever I download more transactions from the bank (cleaning up the 10% that are new vendors as needed).

I've done hours of searches on this and haven't found anything that sounds like what I'm asking for so I'm turning to you, my fellow Excel-fans in my time of need.

Thank you and happy new year!

Charlotte
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
In D2 of Sheet1 enter and copy down:

=LOOKUP(9.99999999999999E+307,SEARCH(" "&Sheet2!$A$2:$A$5&" "," "&$B2&" "),Sheet2!$B$2:$B$5)
 
Upvote 0
Solution
HOLY TOLEDO!!!! It worked. :)
Thank you, thank you, thank you! I can't tell you how excited I am. Geekily excited. Yay.
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,423
Members
448,961
Latest member
nzskater

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