Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

VLOOKUP multiple cells on column

yshmelev
6 - Meteoroid

Hi Community! 

 

I'm struggling with next task: I would like to identify if any of multiple cells (Fruit 1 through Fruit 3) in each row from Table 2 contains in column Fruits of Table1.

 

Fruits
apple
orange
grape
melon

 

NameFruit 1Fruit 2Fruit 3Contains Fruits Table 2?
Mikeapple  Yes
BobpeachpearorangeYes
Jackbanana  No
Robpeachbanana No
RitaappleorangebananaYes

 

Fruits in Table 2 can be up to 40 columns. Number of rows in Table1 is about 300.

 

I hope it is understandable, and someone can help me resolve this.

I really appreciate the support in advance!

4 REPLIES 4
brandon_bunney
8 - Asteroid

Hello,

 

Attached is a workflow that correctly produced the fruit matches in rows 1, 2 and 5 based on your example datasets. I believe it would continue to work with a dataset featuring more "Fruit #" columns if you check the additional checkboxes in the Transpose tool as suggested in the workflow comment. I didn't include "Name" column in the output since we weren't comparing the Fruits to the Names. 

Qiu
20 - Arcturus
20 - Arcturus

@yshmelev 
Tried something different.

1029-yshmelev.PNG

yshmelev
6 - Meteoroid

Thanks a lot! That's very useful!

yshmelev
6 - Meteoroid

Thank you! That's exactly what I was looking for!

Labels