Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Google Sheets lookup with contains condition

$
0
0

In the monthly statement of my bank account I want to tag every transfer with a category:

DescriptionAmountTag
Emma's veggie shop visa#102245groceries
Zettle payment Bert automobile345car
Hugo discount visa#102399groceries
Gpay: Emma's veggie shop39groceries

I made a table with all the keywords and corresponding tags:

KeyTag
Emma'sgroceries
Bert automobilecar
Hugogroceries

Now I need a formula to fill out the Tag-column in the first table automatically, a bit like=ylookup(A2,Table2!A1:B3,2) where A2 is mapped to a row in Table2 that contains it's key word (not like vlookup matches) and returns the corresponding tag.

I'd use =vlookup(), but the transfer descriptions don't always begin the the same string. I've also looked at arrayformula, but didn't get anywhere.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>