Forum Discussion
morgancampbell
Oct 21, 2020Copper Contributor
How to transpose columns, creating new line based on condition
I have data which is as below:
AAA01 |
Company 1 |
Phone number 1 |
Post code 1 |
Email1 |
Name |
1stNumeric 1 |
2ndNumeric 1 |
My data then repeats in this pattern for ~100 rows. Each block of this repetition belongs to the same account and is in the correct order. The name column is the same person's name and is the only consistent value.
I am looking to create a table like this:
AAA01 | Email1 |
I don't need any of the other data.
How would I go about transposing this column to achieve this?
Perhaps there's a way to start a new row based on a cell value (Name), and from there I can delete the unneeded columns?
Thanks
1 Reply
Let's say your data are in A1 and down.
Enter the following formula in C1:
=INDEX(A:A,8*ROW()-7)&""
and in D1:
=INDEX(A:A,8*ROW()-3)&""
Select C1:D1, then fill or copy down as far as you want.