The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Workflow or macro to do look up function on dynamic number of fields

Jerlyn05
6 - Meteoroid

Hi,

I hope someone can help me. I have been working on my workflow for months and could not seem to create a workflow or macro that can do look up function on a data that has dynamic number of fields. As shown below my Text Input_1 has 7 fields. My Text Input_2 has the value for each column on my Text Input_1. I made a simple macro but the challenge I'm having is that my Text Input_1 is dynamic, it can change from having 7 fields down to 3 or 4 or will have 8 columns for instance. What workflow or macro can effectively do function look up for that scenario and give me an output as shown on screenshot below.

Jerlyn05_0-1764676753460.png

Jerlyn05_1-1764676871966.png

 

4 REPLIES 4
Chaoued
8 - Asteroid

@Jerlyn05  Hello, please find attached the solution to your problem. Don’t hesitate to reach out if you have any questions

 

Spoiler
Dummy Demo Screen.png

 

 

Jerlyn05
6 - Meteoroid

Hi @Chaoued

 

I really appreciate your help but I forgot to mention that my data has more has several rows. I tried to use the macro you sent but the result is not exactly what I need it to be. Here's how my data looks like with several rows and the output I am hoping to achieve. Thank you again for taking time to help me.

Jerlyn05_0-1764705067450.png

Jerlyn05_1-1764705137959.png

 

 

flying008
15 - Aurora

Hi, @Jerlyn05 

 

FYI.

 

录制_2025_12_03_10_44_33_214.gif

Jerlyn05
6 - Meteoroid

Thank you so much @flying008  for taking time to solve my problem. I really appreciate this a lot.

Labels
Top Solution Authors