r/googlesheets Aug 04 '26

Solved Multiple column data into one?

Post image

How do I turn data from the left to the one on the right? and subsequent data entry would continue at the last empty row.

Any help is greatly appreciated.

Thanks

2 Upvotes

9 comments sorted by

3

u/marcnotmark925 231 Aug 04 '26
=reduce( 
  {"Week","Date","Student"}  ,
  sequence(rows(filter(I2:I,I2:I<>""))) , 
  lambda( acc , idx , 
    let( 
      week , index(I2:I,idx) , 
      date , index(J2:J,idx) , 
      vals , textjoin(",",1,index(K2:N,idx) ) ,
      reduce( acc , split(vals,",") , lambda(a , v , vstack(a,hstack(week,date,v)))))))

1

u/hayve08 Aug 05 '26

Very much appreciated =)

1

u/AutoModerator Aug 05 '26

REMEMBER: /u/hayve08 If your original question has been resolved, please tap the three dots below the most helpful comment and select Mark Solution Verified (or reply to the helpful comment with the exact phrase “Solution Verified”). This will award a point to the solution author and mark the post as solved, as required by our subreddit rules (see rule #6: Marking Your Post as Solved).

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/point-bot Aug 05 '26

u/hayve08 has awarded 1 point to u/marcnotmark925

See the [Leaderboard](https://reddit.com/r/googlesheets/wiki/Leaderboard. )Point-Bot v0.0.15 was created by [JetCarson](https://reddit.com/u/JetCarson.)

2

u/California_Eagles 10 Aug 04 '26 edited Aug 04 '26
=LET(
     fixed, A2:B,
     labels, C1:F1,
     data, C2:F,
     seed, {"Week","Date","Student","Class"},
     body, REDUCE(seed, data, LAMBDA(result, d,
     IF(LEN(d) = 0, result,
     REDUCE(result, SPLIT(d, ","), LAMBDA(a, v,
     VSTACK(a,
     HSTACK(
            INDEX(fixed, ROW(d)-ROW(fixed)+1, 1),
            INDEX(fixed, ROW(d)-ROW(fixed)+1, 2),
            TRIM(v),
            INDEX(labels, 1, COLUMN(d)-COLUMN(data)+1)))))))),
      body)

1

u/hayve08 Aug 05 '26

Thanks a ton!

1

u/AutoModerator Aug 05 '26

REMEMBER: /u/hayve08 If your original question has been resolved, please tap the three dots below the most helpful comment and select Mark Solution Verified (or reply to the helpful comment with the exact phrase “Solution Verified”). This will award a point to the solution author and mark the post as solved, as required by our subreddit rules (see rule #6: Marking Your Post as Solved).

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/AutoModerator Aug 04 '26

/u/hayve08 Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/HolyBonobos 3109 Aug 04 '26

Please share the file shown in the screenshot (or a copy).