Stack multiple columns into one column in Excel 365 Mac

smashesxl

New Member
Joined
Feb 6, 2023
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
I currently have my data in different columns after using a Text To Columns feature. Now what I want to do is to put them all into one column. Can you please advise what formula to use or is there a custom script please? I have got Office 365 for Mac. Thank you . I am computer literate but not familiar on using VBA, however if the answer is in VBA if I can kindly ask for some guidance please on how to implement it that'd be great. Thank you so much everyone
 

Attachments

  • Screen Shot 2023-02-07 at 3.15.57 PM.png
    Screen Shot 2023-02-07 at 3.15.57 PM.png
    24.3 KB · Views: 18

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Welcome to the MrExcel board!

For the future, consider this for copyable sample data: XL2BB
The easier it is for helpers, the faster you will generally get help. :)

Do you have the TOCOL function?

23 02 07.xlsm
ABCDE
1
2Name 1Name 6Name 11Name 1
3Name 2Name 7Name 12Name 2
4Name 3Name 8Name 13Name 3
5Name 4Name 9Name 14Name 4
6Name 5Name 10Name 15Name 5
7Name 6
8Name 7
9Name 8
10Name 9
11Name 10
12Name 11
13Name 12
14Name 13
15Name 14
16Name 15
Sheet2
Cell Formulas
RangeFormula
E2:E16E2=TOCOL(A2:C6,1,1)
Dynamic array formulas.
 
Upvote 0
Hi. Many thanks for the reply. I don't seem to have a TOCOL function. Do you have any idea why? Thank you :)
 
Upvote 0
I don't seem to have a TOCOL function. Do you have any idea why?
Check the 'Availabilty' section here.

Until you have TOCOL, try this instead.

23 02 07.xlsm
ABCDE
1
2Name 1Name 6Name 11Name 1
3Name 2Name 7Name 12Name 2
4Name 3Name 8Name 13Name 3
5Name 4Name 9Name 14Name 4
6Name 5Name 10Name 15Name 5
7Name 6
8Name 7
9Name 8
10Name 9
11Name 10
12Name 11
13Name 12
14Name 13
15Name 14
16Name 15
17
Sheet2
Cell Formulas
RangeFormula
E2:E16E2=LET(r,A2:C6,w,ROWS(r),s,SEQUENCE(w*COLUMNS(r),,0),INDEX(r,MOD(s,w)+1,INT(s/w)+1))
Dynamic array formulas.
 
Upvote 0
Hi. Really appreciate the reply. I found the TOCOl function :) . Could I ask you to please help me understand a scan by row vs a scan by column a bit better? I did not really understand this aspect, also from that Microsoft link you provided it was not clear... Thank you
 
Upvote 0
Could I ask you to please help me understand a scan by row vs a scan by column a bit better?
Sure. The scan by argument (last argument) is theoretically a TRUE/FALSE argument but 1/0 can be used instead and that is what I had used in my earlier post.
The argument simply tells the function whether to go down then across or across and then down.
Should be clear enough from the examples below I think.

23 02 07.xlsm
ABCDEF
1Scan by columnScan by column = FALSE means scan by row
2Name 1Name 6Name 11Name 1Name 1
3Name 2Name 7Name 12Name 2Name 6
4Name 3Name 8Name 13Name 3Name 11
5Name 4Name 9Name 14Name 4Name 2
6Name 5Name 10Name 15Name 5Name 7
7Name 6Name 12
8Name 7Name 3
9Name 8Name 8
10Name 9Name 13
11Name 10Name 4
12Name 11Name 9
13Name 12Name 14
14Name 13Name 5
15Name 14Name 10
16Name 15Name 15
17
Sheet2
Cell Formulas
RangeFormula
E2:E16E2=TOCOL(A2:C6,1,TRUE)
F2:F16F2=TOCOL(A2:C6,1,FALSE)
Dynamic array formulas.
 
Upvote 0
An alternative solution is with Power Query

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table4"]}[Content],
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(Source, {}, "Attribute", "Value"),
    #"Removed Other Columns" = Table.SelectColumns(#"Unpivoted Columns",{"Value"})
in
    #"Removed Other Columns"
 
Upvote 0
For future reference.

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: How do I stack multiple columns into one column in Excel 365 Mac
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top