• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

WRAPCOLS|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / WRAPCOLS|General Excel Questions & Answers|Excel Forum|My Online Training Hub

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…WRAPCOLS
sp_PrintTopic sp_TopicIcon
WRAPCOLS
Avatar
Eileen McCarthy
Member
Members
Level 0
Forum Posts: 6
Member Since:
May 19, 2022
sp_UserOfflineSmall Offline
1
December 16, 2022 - 7:02 pm
sp_Permalink sp_Print

I can use WRAPCOLS for a single column, just want to know does it work for 2 Columns; I have 20 pages of 

Account No         Bonus 

123456               500.00

234567              1500.00

I have room on the excel sheet for 3 sets of these rather than 20 pages of one set.  I am currently copying to Excel & getting it done this way, just wondering if WRAPCOLS works for 2 or more cols?  

sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4354
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
December 17, 2022 - 8:29 am
sp_Permalink sp_Print

Hi Eileen,

I'm having trouble visualising the before and after view of your data that you want. Can you please upload a sample Excel file that shows the starting point and what your desired result would be?

Mynda

Avatar
Eileen McCarthy
Member
Members
Level 0
Forum Posts: 6
Member Since:
May 19, 2022
sp_UserOfflineSmall Offline
3
December 19, 2022 - 7:29 pm
sp_Permalink sp_Print

Hi Mynda, See attached sample.  If I print this, is it on 10 pages, I am just checking if the WRAPCOLS will fit 3 lots of 2 Cols on a page, I am currently copying this to Word and fitting it to 2-3 pages, both attached.

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1463
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
December 19, 2022 - 7:55 pm
sp_Permalink sp_Print

Hi Eileen,

Nothing attached.  You need to click on the Start Upload button and then wait for it to upload completely.

Regards

Phil

Avatar
Eileen McCarthy
Member
Members
Level 0
Forum Posts: 6
Member Since:
May 19, 2022
sp_UserOfflineSmall Offline
5
December 20, 2022 - 6:45 pm
sp_Permalink sp_Print

Sorry see attached.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4354
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
December 20, 2022 - 8:25 pm
sp_Permalink sp_Print sp_EditHistory

Hi Eileen,

The best solution I could come up with is to use TEXTJOIN in column C to concatenate the Account No. and Value together with a space:

=TEXTJOIN(" ",TRUE,A2:B2)

Or just use the ampersand like so:

=A2&" "&B2

Then copy down the column.

Then in cell E2 use WRAPROWS like so:

=WRAPROWS(C2:C507,5)

I don't think there's a way with formulas to interweave columns A and B across multiple columns, but someone cleverer than me might have some other ideas!

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
Velouria
London or thereabouts
Member
Members


Trusted Members
Level 4
Forum Posts: 574
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
7
December 20, 2022 - 8:34 pm
sp_Permalink sp_Print

I feel like there should be something simpler using HSTACK and WRAPCOLS but it eludes me at the moment. Something like this should work - adjust the 50 to however many rows you can fit on a printed page:

 

=LET(numRows,50,data,A2:B507,MAKEARRAY(numRows,2*ROUNDUP(ROWS(data)/numRows,0),LAMBDA(r,c,IFERROR(INDEX(data,INT((c-1)/2)*numRows+r,1+ISEVEN(c)),""))))

Avatar
Velouria
London or thereabouts
Member
Members


Trusted Members
Level 4
Forum Posts: 574
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
8
December 20, 2022 - 9:41 pm
sp_Permalink sp_Print

Not simpler, but just as an option:

 

=LET(data,A2:B507,numrows,50,numcols,ROUNDUP(ROWS(data)/numrows,0),CHOOSECOLS(HSTACK(WRAPCOLS(INDEX(data,,1),numrows,""),WRAPCOLS(INDEX(data,,2),numrows,"")),SCAN(numcols,SEQUENCE(numcols*2),LAMBDA(a,b,IF(ISEVEN(b),a+numcols,a-numcols + 1)))))

Avatar
Eileen McCarthy
Member
Members
Level 0
Forum Posts: 6
Member Since:
May 19, 2022
sp_UserOfflineSmall Offline
9
December 21, 2022 - 6:38 pm
sp_Permalink sp_Print

Thank you both Mynda & Velouria, I will see which one works better! Happy festivities!

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 170
Currently Online:
Guest(s) 34
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1431
Anders Sehlstedt: 848
Velouria: 574
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 213
A.Maurizio: 202
Aye Mu: 201
Jessica Stewart: 185
Newest Members:
David Collins
Andras Marsi
Orimoloye Funsho
YUSUF IMAM KAGARA
PRADEEP PRADHAN
Vicky Otosnika
Abhishek Singh
Kevin Sojourner
Kara Weiss
And Woox
Forum Stats:
Groups: 3
Forums: 24
Topics: 6047
Posts: 26543

 

Member Stats:
Guest Posters: 49
Members: 31497
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Riny van Eekelen
© Simple:Press —sp_Information
  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
 
  • About My Online Training Hub
  • Contact
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Copyright © 2023 · My Online Training Hub · All Rights Reserved

Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.

Download A Free Copy of 100 Excel Tips & Tricks

excel tips and tricks ebook

We respect your privacy. We won’t spam you.

x