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

Extract a certain value from table

dreldrel
7 - Meteor

Hi all, I'm struggling at extracting a specific value from a table. For example, I'd like to take the value "Amy" below the cell "name". The values are always below the cell "name".

 

Does anyone have an idea to sort it out? Thanks in advance

 

123
irrelevant cellirrelevant cellirrelevant cell
irrelevant cellnameirrelevant cell
irrelevant cellAmyirrelevant cell
7 REPLIES 7
Felipe_Ribeir0
16 - Nebula

Hi @dreldrel 

 

One way of doing this

 

Felipe_Ribeir0_0-1669298037577.png

 

dreldrel
7 - Meteor

Hi @Felipe_Ribeir0,

 

Many thanks for quickly getting back to me. I was wondering what if the table length is dynamic and the name position is not fixed, is it possible to find the value as well?

Felipe_Ribeir0
16 - Nebula

Hi @dreldrel 

 

Could you please share some example table of how the position can be?

dreldrel
7 - Meteor

Hi @Felipe_Ribeir0 

 

No problem, it could be the below scenarios. The thing is that I'd like to output "Amy" to users no matter where is it in the table. Many thanks for your assistance.

 

1234
irrelevant cellirrelevant cellirrelevant cellirrelevant cell
irrelevant cellirrelevant cellirrelevant cellirrelevant cell
irrelevant cellirrelevant cellirrelevant cellname
irrelevant cellirrelevant cellirrelevant cellAmy

 

or

 

12
irrelevant cellirrelevant cell
nameirrelevant cell
Amyirrelevant cell
irrelevant cellirrelevant cell
Felipe_Ribeir0
16 - Nebula

Hi @dreldrel 

 

Read all possible columns and compare different rows at the same time can be tricky, here is one way of doing this using a batch macro, please see if it works for you:

 

Input 1

 

Felipe_Ribeir0_0-1669301048586.png

Input 2

Felipe_Ribeir0_1-1669301086620.png

Input 3

 

Felipe_Ribeir0_2-1669301117869.png

 

 

 

OllieClarke
15 - Aurora
15 - Aurora

Hi @dreldrel 

 

here's a macro-less approach that outputs into a new column called 'OUTPUT' the value immediately below name

OllieClarke_0-1669302011850.png

OllieClarke_1-1669302053220.png

OllieClarke_2-1669302067916.png

OllieClarke_3-1669302082601.png

 

Hope that helps,

 

Ollie

 

 

dreldrel
7 - Meteor

Hi all, very appreciate for helping me figure out the solutions! Both are working. 

Labels