lookup for partial text, then repeat it many times

tothgabor

New Member
Joined
Oct 6, 2013
Messages
1
Hi everyone,

I am searching for a non-VBA solution for the following problem if it exists.

I download regularly my bank account transactions from my netbank, which looks like this:
booking textamount
Bezahlung Karte MC/000000230 28 00000014 MAESTRO POS 02.11.15 13:35K001 BURGER KING\\BERLIN\12 527 8003400EUR14,98
ERGO-POLIZZE KF-002314880 FUER ASTRA-H-CC 1.6 5T W-62959D - KFZ INDIVIDUELL RECHNUNG NR. 001127330655 OG/000000229 VBOEATWWXXX AT324300041455080014 ERGO Versicherung AG103,93
POS 4,99 AT K1 17.10. 14:27 VD/000000210 IKEA WIEN NORD WIEN 12204,99

<tbody>
</tbody>

I would like to look up a spending category for each line of transaction based on a mapping table:
key wordcategory
BURGER KINGfood
ERGO Versicherungcar
IKEAhome

<tbody>
</tbody>

These are only examples, the tables are quite long, and every month there are some new items which should be inserted into the mapping. Number of categories are given. Due to the large number of mapping items this solution is not working: iferror(vlookup("*BURGER KING*";mapping;2;0);vlookup("*ERGO*";mapping;2;0)).... The booking text field in the bank transactions doesn't show a reliable and consistent pattern, it is not possible to lookup within the cell with text formulas like MID, LEFT, RIGHT, SEARCH or their combination. Or I just haven't discovered it yet. :p

How could I lookup for each line the related category?

Thanks for the answers! :)
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Try...

=LOOKUP(9.99999999999999E+307,SEARCH(" "&KeyWords&" "," "&$A2&" "),Categories)

where A2 houses a booking text.
 
Upvote 0

Forum statistics

Threads
1,216,086
Messages
6,128,734
Members
449,466
Latest member
Peter Juhnke

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