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

Alteryx Designer Desktop Discussions

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

Vlookup based on column number

pranee_007
7 - Meteor

Hi Team,

 

I want to add a new column as shown in S1 below based on below conditions:

1. The Value in code needs to be searched only in the column number corresponding to that value in S2 and return the same value if found else 'Not found'.

2. The Value needs to be searched only in that particular column and not the entire data in S2.

 

For Example say the code is j2 and column number corresponding to that is 6, So it has to search for the value j2 in column 6 of S2 and return j2 if found.

 

S1:Already in Alteryx workflow -Main source
CodeColumn NumberNew Column
p21p2
a38a3
r43r4
h69h6
t84Not found
j26j2
m22Not found
v77v7
x85Not found

 

S2: Outside - Needed to be loaded into Alteryx
LOSHYUJDIFDDDEGREHYTVSSVBH
p9m3r1t1x2j2v3a1h1
p10m4r2t4x3j3v4a2h2
p11m5r3t5x4j4v5a3h3
p12m6r4t6x5j5v2a4h4
p7m1r5t7x6j6v1a5h5
p2m9r6t2x7j7v6a6h6
p1m8r7t3x1j8v7a7h7

 

1 REPLY 1
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @pranee_007,

 

Is this what you're looking to achieve?

 

image.png

 

If this solves your issue please mark the answer as correct, if not let me know. I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

 

Labels