In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases here!
Free Trial

Alteryx Designer Desktop Discussions

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

Insert new row between two existing cell in excel file

vijaylnyadav
8 - Asteroid

Hi,

 

Please help me i have been trying...

 

I was trying but instead of moving it is overwriting to the cell

I have a condition here: - 

1. Insert a new row between two existing row 

for e.g.

Consider the template output i want to insert a new row between 3 and 6 with data 4&5 as we get with the help of input.

 

 

Template Output: -     

Roll NoName
1A
2B
3C
6F
7G
8H
9I

 

Input: - 

Roll NoName
4D
5E

 

Expected Output: - 

Roll NoName
1A
2B
3C
4D
5E
7G
8H
9I
5 REPLIES 5
Emil_Kos
17 - Castor
17 - Castor

Hi @vijaylnyadav,

 

Did you try using the union tool and sorting the data by roll no afterwards?

vijaylnyadav
8 - Asteroid

Hi @Emil_Kos but here output is not getting into our workflow.

 

I cant use output data in our workflow i just want to insert between two rows without overwriting it. Instead moving the last cell downwards and insert to the newly created row.

Emil_Kos
17 - Castor
17 - Castor

And those values?

 

Roll No Name
4 D
5

E

 

How I should know what values should they be? 

vijaylnyadav
8 - Asteroid

hi @Emil_Kos we only know the cell number where it should be inserted. in this case we have to insert into cell number 5 and move all the existing data downwards

Emil_Kos
17 - Castor
17 - Castor

Hi @vijaylnyadav,


This should work for you:

 

Emil_Kos_0-1619168524035.png

 

Thank to generate rows tool, we generate rows based on the maximum number of roll no. 

 

After that, we are joining it with the data and we identify each position that we are missing.

 

I kept the name blank as I didn't know what information you want to insert there:

 

Emil_Kos_1-1619168639118.png

Good luck!

Labels
Top Solution Authors