community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

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

Replicating Excel's "Match" Function

Meteoroid

Hey all, 

 

I'm just getting started with Alteryx and am having trouble replicating a simple excel function. I've looked on the community for an answer, but am not sure there is a topic that directly addresses this questions. 

 

I would like to check whether a value in a specific cell (i.e. ABCDE123) exists in a column in another input file. This is very similar to excel's MATCH function combined with an ISNUMBER. If that value exists in the column, I'd like it to return "True". If not, I'd like it to return False. 


Any help you could provide would be appreciated!

 

Best,

AB

ACE Emeritus
ACE Emeritus

You might be able to do this using the FindReplace tool, as in the attached sample.

Alteryx
Alteryx

You can use "Contains"

 

Contains(String, Target, CaseInsensitive=1) Searches for the occurrence of a particular string within a string. Returns a TRUE or FALSE if the string matches the pattern. It is defaulted to case insensitive.

Example

Contains('123ABC', 'ABC') returns TRUE

Contains('123ABC', 'abc') returns TRUE

Contains('123ABC', 'abc', 0) returns FALSE

@JohnJPS answer is probably best way to do it.

 

One formula to reproduce the Excel function is:

FindString([Field1], "123") != -1

This will return true if '123' is in the value (Field1) or false otherwise

Highlighted
Meteoroid

Thank you so much!  I was able to get the results I wanted.

 

However, a bit surprised an amazing/powerful program such as Alteryx doesn't have a simpler and more direct tool for this.

 

 

Labels