Alteryx Designer Desktop Discussions

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

Vlookup, adding a new column and adding a new sheet

gavinloi
8 - Asteroid

Hi all,

 

I am having some issues here and hope that you can help.

I would like to do (1) a vlookup between 2 difference excels, (2) creating a new column for the results of the vlookup and (3) pasting the data from the 2nd excel into a new sheet in the first excel.

The vlookup will query from the 2nd excel and populate the results in the 1st excel in a new column that would be created. once that is done, the data would also be pasted in the 1st excel in a new sheet.

Would this be possible ?

Thank you!

 

Test file A

Country Population
USA4000
Spain700
Hong Kong10
Singapore8
Portugal500
China300
Japan100

 

Test file B

MaleFemaleCountry
20002000USA
400300Spain
46Hong Kong
53Singapore
200300Portugal

 

Expected output

Country VlookupPopulation
USA 4000
Spain 700
Hong Kong 10
Singapore 8
Portugal 500
China 300
Japan 100

 

 

Thank you!

Gavin

6 REPLIES 6
Qiu
20 - Arcturus
20 - Arcturus

@gavinloi 
Can you check your expected output sample again?

Can not see how is the Vlookup working here. 😅

Kurohits
10 - Fireball

Based on your question, and as per my understanding..I have came up with this workflow. Check it out if this helps. 

 

 

gavinloi
8 - Asteroid

Apologies, the expected output should be as below.

the vlookup would take "countries" from both excels and if there is a match it shows the "country" or if not it would be NA.

 

Expected output

Country VlookupPopulation
USAUSA4000
SpainSpain700
Hong KongHong Kong10
SingaporeSpain8
PortugalHong Kong500
ChinaNA300
JapanNA100

 

 

Qiu
20 - Arcturus
20 - Arcturus

@gavinloi 

I still have doubt about the your output but perhaps like this.

0608-gavinloi.PNG

gavinloi
8 - Asteroid

Thanks @Kurohits and @Qiu 

 

Have used both methods and twigged abit to get the desired solution!

Many thanks and have accepted both as solutions! 🙂

Qiu
20 - Arcturus
20 - Arcturus

@gavinloi 
Glad to help and thank you for the accept mark. 😁

Labels