Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Advanced Vlookup (advanced to me at least) URGENT

Davidmcho
7 - Meteor

Hello,  I need to do a vlookup to do some data validation. 

 

(VLOOKUP(AL3,'Clients'!$B:$B,1,0)<>"","Yes","No")

 

This is what I need. 

 

AL3 and $B:$B are in different tabs of an excel spreadsheet.

 

AL3 has a column header of "Group Name" and so does column B of the "Client" tab. 

 

I tried using a Join, but this screws up the data if there are duplicate values in Column B. 

 

What I'm trying to do is check in Column B if the group name from AL3 (column A of Tab X) exists in Column B.

 

Please help me ... if you need help clarifying as I did a terrible job explaining, please don't hesitate to let me know.

 

Thank you all!

8 REPLIES 8
MarqueeCrew
20 - Arcturus
20 - Arcturus

Urgent/Quick Response....

 

  1. Input 1:  AL3
  2. Input 2: B:
  3. Summarize input 2 and GROUP BY Group Name.  This gets you a single value for all unique group names.
  4. Take the output from input 1 and the output from the summarize and connect them to a FIND & Replace (F= input1, R=Summarize).
    1. Find within field GroupName
    2. Find Value field GroupName
    3. Find: Entire Field
    4. Case Insensitive if you need it
    5. Match whole word if you need it
    6. APPEND field(s) to Record: GroupName

This will create a [Group Name2] field because it will rename the found value.  When it finds something, it will be NOT-Null, if it doesn't it will be null.

Use a formula tool as:

 

IIF(IsNull([Group Name2]),"No","Yes")

Cheers,

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Davidmcho
7 - Meteor

You're my hero, thank you so much

MarqueeCrew
20 - Arcturus
20 - Arcturus
That’s awfully nice. My pleasure.
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Davidmcho
7 - Meteor

Mark, if this becomes more complex and it ends up becoming an index and match function such as:

 

IF(INDEX('Client'!$A:$I,MATCH($AI3&$AL3,'Client'!$A:$A&'Client'!$B:$B,0),2)<>"","Yes","No")

 

How would this be possible? the Find and Replace tool doesn't seem to work here since the index function in excel is looking at multiple columns not just one.

MarqueeCrew
20 - Arcturus
20 - Arcturus
You can transpose the data columns and group by the output value column. That’s the trick there.
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Davidmcho
7 - Meteor

There is also Two Lookup values in the match portion of the function and two lookup array columns. This makes it even more confusing...... 

 

IF(INDEX('Client'!$A:$I,MATCH($AI3&$AL3,'Client'!$A:$A&'Client'!$B:$B,0),2)<>"","Yes","No")

 

 

Davidmcho
7 - Meteor

Let me give that a try. Thank you for your quick response! You have my utmost gratitude 

Davidmcho
7 - Meteor

Mark, I'm completely lost... Is there any way you can show me how to do and take into consideration there is two lookup values in the Match formula and two columns in the lookup array? 

 

This is my last task ............. Please.

 

IF(INDEX('Client'!$A:$I,MATCH($AI3&$AL3,'Client'!$A:$A&'Client'!$B:$B,0),2)<>"","Yes","No")

Labels
Top Solution Authors