How to Wrap 2 Columns at the same time?

Lacan

Board Regular
Joined
Oct 5, 2016
Messages
228
Office Version
  1. 365
Platform
  1. Windows
Hello Guys, 😉

Have this "ORIGINAL" table as a result of a filter function.
Despite the number of the rows below (because maybe have to adjust them in the future) how is the formula to get the "END RESULTS" example?
All the help is welcome!!! 👍👍
Thank you very much!!!🙏🍻

Fórmula Principal para o Ficheiro VDF.xlsm
ABCDEFGHIJ
1
2
3ORIGINALEND RESULTS
4CUSTOMER POTENCIAL
5APPLED10APPLED10SANTAD05
6XPTOD08XPTOD08CCMD04
7AUCHAND06AUCHAND06RDAMD03
8WORTEND07WORTEND07GOUSED02
9SANTAD05
10CCMD04
11RDAMD03
12GOUSED02
13
14
29-09-2024
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hello Guys, 😉

Have this "ORIGINAL" table as a result of a filter function.
Despite the number of the rows below (because maybe have to adjust them in the future) how is the formula to get the "END RESULTS" example?
All the help is welcome!!! 👍👍
Thank you very much!!!🙏🍻

Fórmula Principal para o Ficheiro VDF.xlsm
ABCDEFGHIJ
1
2
3ORIGINALEND RESULTS
4CUSTOMER POTENCIAL
5APPLED10APPLED10SANTAD05
6XPTOD08XPTOD08CCMD04
7AUCHAND06AUCHAND06RDAMD03
8WORTEND07WORTEND07GOUSED02
9SANTAD05
10CCMD04
11RDAMD03
12GOUSED02
13
14
29-09-2024
Does this formula work?

Copy range from string until reach another string.xlsm
CDEFGHI
3ORIGINALEND RESULTS
4CUSTOMER POTENCIAL
5APPLED10APPLED10SANTAD05
6XPTOD08XPTOD08CCMD04
7AUCHAND06AUCHAND06RDAMD03
8WORTEND07WORTEND07GOUSED02
9SANTAD05
10CCMD04
11RDAMD03APPLED10SANTAD05
12GOUSED02XPTOD08CCMD04
13AUCHAND06RDAMD03
14WORTEND07GOUSED02
Sheet296
Cell Formulas
RangeFormula
F11:I14F11=HSTACK(CHOOSECOLS(WRAPCOLS($C$5:$C$12,4),1),CHOOSECOLS(WRAPCOLS($D$5:$D$12,4),1),CHOOSECOLS(WRAPCOLS($C$5:$C$12,4),2),CHOOSECOLS(WRAPCOLS($D$5:$D$12,4),2))
Dynamic array formulas.
 
Upvote 1
Two other options
Fluff.xlsm
ABCDEFGHI
1
2
3ORIGINALEND RESULTS
4CUSTOMER POTENCIAL
5APPLED10APPLED10XPTOD08
6XPTOD08AUCHAND06WORTEND07
7AUCHAND06SANTAD05CCMD04
8WORTEND07RDAMD03GOUSED02
9SANTAD05
10CCMD04APPLED10SANTAD05
11RDAMD03XPTOD08CCMD04
12GOUSED02AUCHAND06RDAMD03
13WORTEND07GOUSED02
Data
Cell Formulas
RangeFormula
C5:D12C5=N5:O12
F5:I8F5=WRAPROWS(TOCOL(C5#),4,"")
F10:I13F10=LET(r,CEILING.MATH(ROWS(C5#)/2,1),IFNA(HSTACK(TAKE(C5#,r),DROP(C5#,r)),""))
Dynamic array formulas.
 
Upvote 1
Two other options
Fluff.xlsm
ABCDEFGHI
1
2
3ORIGINALEND RESULTS
4CUSTOMER POTENCIAL
5APPLED10APPLED10XPTOD08
6XPTOD08AUCHAND06WORTEND07
7AUCHAND06SANTAD05CCMD04
8WORTEND07RDAMD03GOUSED02
9SANTAD05
10CCMD04APPLED10SANTAD05
11RDAMD03XPTOD08CCMD04
12GOUSED02AUCHAND06RDAMD03
13WORTEND07GOUSED02
Data
Cell Formulas
RangeFormula
C5:D12C5=N5:O12
F5:I8F5=WRAPROWS(TOCOL(C5#),4,"")
F10:I13F10=LET(r,CEILING.MATH(ROWS(C5#)/2,1),IFNA(HSTACK(TAKE(C5#,r),DROP(C5#,r)),""))
Dynamic array formulas.

Dear @Fluff

Hope you are ok.
Thanks for the help.

However can you please add to your formula (=WRAPROWS(TOCOL(C5#),4,"") the sort function, column 2, descending order, by column not by lin (example below)?
Thank you very much!!!

1727620003000.png
 
Upvote 0
How about
Excel Formula:
=LET(s,SORT(C5#,2,-1),r,CEILING.MATH(ROWS(s)/2,1),IFNA(HSTACK(TAKE(s,r),DROP(s,r)),""))
 
Upvote 1
How about
Excel Formula:
=LET(s,SORT(C5#,2,-1),r,CEILING.MATH(ROWS(s)/2,1),IFNA(HSTACK(TAKE(s,r),DROP(s,r)),""))

It works well @Fluff 👍👍

After some tests would like to change the number of rows apperance in 1st column, maybe it coul be 5 or 6 rows and the rest of results in 2nd column.
Is formula able to provide that so can make change accordingly?
Thank you very much!!

1727641346166.png
 
Upvote 0
How about
Excel Formula:
=LET(s,SORT(C5#,2,-1),IFNA(HSTACK(TAKE(s,5),DROP(s,5)),""))
 
Upvote 1
Dear @Fluff

Thanks for the help!🙏👍
Through the previous formula there was data that didn't appear.
Think we are very near.
Let me clarify better through 3 sequences examples and son on.
Can you please check?
Again, thank you very much.👍👍

Through the update formula let´s suppose would like to changing in some function in formula to "1":
The number chosen should return the total rows in 1st column and the rest of data in the 2nd column.

1727728477624.png


Let´s suppose change in some function there to "3":
1727728560092.png


Let´s suppose change in some function there to "5":
1727728669118.png



And so on...
 
Upvote 0
As you keep moving the goal posts, can you please explain EXACTLY what you want.
 
Upvote 0
As you keep moving the goal posts, can you please explain EXACTLY what you want.
Dear @Fluff

After test it and re-test it think I´m in conditions to explain even better.
My original table with 8 rows is just a simple example because in my job worksheet will have more and different tables each one can have between 4 and 16 rows.
So if table has more then 6 rows here the example below

1728160878677.png


and if table has less then 6 rows they should stay in 1st column like:
1728161068144.png


Hope you can help.
Thank you very much!!! 👍👍🍻

Fórmula Principal para o Ficheiro VDF.xlsm
ABCDEFGHIJ
1
2
3ORIGINALEND RESULTS
4CUSTOMER POTENCIAL
5APPLED10APPLED10APPLED10ACPD03
6XPTOD08XPTOD08XPTOD08GOUSED02
7AUCHAND06AUCHAND06AUCHAND06
8WORTEND07WORTEND07WORTEND07
9SANTAD05SANTAD05SANTAD05
10CCMD04CCMD04CCMD04
11ACPD03ACPD03
12GOUSED02GOUSED02
13
14
29-09-2024 (2)
Cell Formulas
RangeFormula
C5:D12C5=UNIQUE(APPLE)
Dynamic array formulas.
Named Ranges
NameRefers ToCells
'29-09-2024 (2)'!APPLE='29-09-2024 (2)'!$A$5:$B$12C5
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,637
Members
452,663
Latest member
MEMEH

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