Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Partial match with VLOOKUP

sanjdhar
7 - Meteor

Hi there,

 

Is there a way to emulate Excel Partial match with VLOOKUP as outlined in this article:

 

https://exceljet.net/formula/partial-match-with-vlookup

 

I know the Join tool is the equivalent of vlookup, but I need to match on wildcard (*)

 

Thanks

5 REPLIES 5
atcodedog05
22 - Nova
22 - Nova

Hi @sanjdhar 

 

Find and replace is the equivalent of vlookup. It also does a partial match. Here is a resource on it.

https://community.alteryx.com/t5/Interactive-Lessons/VLookUps-with-Designer/ta-p/80201 

 

Hope this helps : )

sanjdhar
7 - Meteor

No it didn't really help.

 

The Left Join data comes from the tab JoinLeft (see attached). The lookup values come from the tab JoinRight. The key for the match is in the first column in each tab. 

In Excel vlookup (with FALSE option), I can pull the Acrobat Std / Pro as the mapped value since the vlookup matches the ACROBAT CC Acrobat CC * against the ACROBAT CC Acrobat CC Acrobat Std / Pro in the reference lookup.

 

What I desire is something like this:

key (segments + segments offering + app)Scenario FwkUnitsMappedValue
ACROBAT CC Acrobat CC *Actuals 20210112Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 20210213Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 20210319Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 2021049Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 2021057Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 20210616Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 20210727Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 20210825Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 20210920Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 20211019Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 20211123Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 20211219Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 20211326Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 20211420Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 20211516Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 20211621Acrobat Std / Pro
ACROBAT CC Acrobat CC *Actuals 20211717Acrobat Std / Pro

 

mst3k
11 - Bolide

it sounds like you want to use a wildcard in your join, instead of a strict value, basically? 

a few ways you could do that - a fuzzy match might work, but i don't know how to use fuzzy match... another way would be to append the values together, then do a filter tool with "contains" to check the values.

this is an oversimplified example - i assumed your search term always ends with *, rather than allowing a wildcard in the middle. but you could play with it from there

 

mst3k_0-1631921084769.png

 

sanjdhar
7 - Meteor

Yes, that is what I ended up in implementing, except that the append fields max out at 16. So I had to use an iterative macro to exhaust all the vlookup reference values given the 16 record append limitation. 

mst3k
11 - Bolide

Sorry you built the macro already! It doesn't stop at 16, that's just the default. It's very easy to miss, because for me at least I have to scroll down in the Append tool configuration to see it, and it's below a bunch of white space. You change that to allow all appends.

Be careful because you will get X * Y records so don't use huge datasets

Labels
Top Solution Authors