Forum Discussion

User537843's avatar
User537843
Copper Contributor
Jan 13, 2022

How to transpose and skip?

 

Hello everyone, thanks for being so helpful. I have columns where I need to transpose them into rows. I need to copy only every 6th column in the source, but not skip cells in the row destinations. I am using Excel 2022.

 

4 Replies

  • mtarler's avatar
    mtarler
    Silver Contributor
    first: what version of Excel are you using? excel 365?
    second: I'm guessing you don't just want a column of letters: a, b, c, d, ... and that the real sheet isn't a,b,c,... but some other values, right? I will also assume by 'skipping' that the cells inbetween are blank (i.e. it is NOT "a" "blah" "blah" "blah" "blah" "blah" "blah" "b" ...)
    so assuming the above then try:
    =LET(IN, TRANSPOSE(A1:Z1),FILTER(IN,IN<>"",""))
    if the second is not the case you use a more general solution like:
    =LET(IN, TRANSPOSE(A1:Z1), multiple,7, FILTER(IN,MOD(SEQUENCE(ROWS(IN),,0),multiple)=0,""))

Resources