Forum

Notifications
Clear all

Dynamically Transposing Row Value Across Every Other Column

5 Posts
3 Users
0 Reactions
93 Views
(@kvnsully)
Posts: 9
Active Member
Topic starter
 

I would like to know how to write a formula that would dynamically take data in cells A2:A25 and transpose the data starting in column C2 across every other column (C2,E2,G2,I2, etc...).  Any suggestions would be greatly appreciated.

 
Posted : 01/09/2022 11:09 am
(@jstewart)
Posts: 216
Estimable Member
 

Without an uploaded file, I will direct you to this article on 3 ways to transpose data. If you have any further questions please upload a sample file illustrating your problem and desired result. 🙂 

 
Posted : 01/09/2022 12:01 pm
(@kvnsully)
Posts: 9
Active Member
Topic starter
 

Thanks Jessica - The part I'm having trouble with is not transposing the data but putting the results in every other column or every nth column were n=2.

Any Ideas?

 
Posted : 01/09/2022 4:59 pm
(@jstewart)
Posts: 216
Estimable Member
 

How is your data set up? I'm having a hard time wrapping my mind around what you are trying to do. Can you upload an example?

 
Posted : 01/09/2022 7:17 pm
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

Hi Kevin,

Perhaps the attached workbook contains a solution you can use. In C1 I entered a formula and dragged it across as far as needed.

=IF(ISODD(COLUMN()),INDEX(myRange,(COLUMN()-1)/2),"")

This works in all Excel versions.

 

In case your Excel supports dynamic array functions you could use the formula in C2. It spills all in one go.

=IF(ISODD(SEQUENCE(,COUNTA(myRange)*2-1)),INDEX(myRange,(SEQUENCE(,COUNTA(myRange)*2-1,3,1)-1)/2),"")

 

Note that I named the range A2:A25 "myRange". 

 
Posted : 02/09/2022 12:57 am
Share: