+ Reply to Thread
Results 1 to 12 of 12

Creating a "Double Column" Report

  1. #1
    Forum Contributor
    Join Date
    12-09-2015
    Location
    Virginia, USA
    MS-Off Ver
    Excel 365
    Posts
    129

    Creating a "Double Column" Report

    I have 5 fields in the "first column" of the page and the same five fields in the 2nd column of the report. So columns A:F are "Column 1", column G is a divider cell, and columns H:M are "Column 2".

    I'd like to fill all of column 1 data before moving over to column two starting from Cell A4 and moving through to row 35. Instead of moving to row 36, the data (from another sheet), would continue filling in from the top of Column 2 in Cell H4 all the way throuh M35.

    Finally, the data resumes populating Column 1 (on page 2) back at Cell A36 and continues that trend until all of the data is reported.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Creating a "Double Column" Report

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Contributor
    Join Date
    12-09-2015
    Location
    Virginia, USA
    MS-Off Ver
    Excel 365
    Posts
    129

    Re: Creating a "Double Column" Report

    Ok, so basically I've got a master sheet full of records. I want to take that general list and split it between two main columns to condense a report (go green and save paper . I'd like to automate it with a VBA Macro to automatically create a double column report but struggling with code on how to perform loops since the data size will always vary.

    See attached spreadsheet for the example.

    Thanks in advance for your help on this!
    Attached Files Attached Files

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Creating a "Double Column" Report

    Try this:

    Please Login or Register  to view this content.
    Last edited by xladept; 05-04-2020 at 05:41 PM. Reason: Trim Output to 13 cols

  5. #5
    Forum Contributor
    Join Date
    12-09-2015
    Location
    Virginia, USA
    MS-Off Ver
    Excel 365
    Posts
    129

    Re: Creating a "Double Column" Report

    Wow. This is great. It worked and it's really fast! I'll have to tweak some of the code just so I can grasp what is going on in the function, but was amazed that it worked right out of the box.

    Thank you!

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Creating a "Double Column" Report

    You're welcome!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    You may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  7. #7
    Forum Contributor
    Join Date
    12-09-2015
    Location
    Virginia, USA
    MS-Off Ver
    Excel 365
    Posts
    129

    Re: Creating a "Double Column" Report

    Will do. Thanks again!

  8. #8
    Forum Contributor
    Join Date
    12-09-2015
    Location
    Virginia, USA
    MS-Off Ver
    Excel 365
    Posts
    129

    Re: Creating a "Double Column" Report

    Oops. I guess I looked at the macro too late last night and got too excited to see all the data flow in. I realized that this macro goes down the entire left column before starting over on the right column. My goal is to populate left column page 1 first, followed by right column page 1, left column page 2/right column page 2, etc (so the data flow kind of zig-zags dow the page).

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Creating a "Double Column" Report

    Thanks for the rep!

    Try this:

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    12-09-2015
    Location
    Virginia, USA
    MS-Off Ver
    Excel 365
    Posts
    129

    Re: Creating a "Double Column" Report

    Perfect! The rows on page variable helps tremendously, too. Thanks!

  11. #11
    Forum Contributor
    Join Date
    12-09-2015
    Location
    Virginia, USA
    MS-Off Ver
    Excel 365
    Posts
    129

    Re: Creating a "Double Column" Report

    Quote Originally Posted by xladept View Post
    Thanks for the rep!

    Try this:

    Please Login or Register  to view this content.


    Hello,

    I wanted to reach back out to you to see if you could help me out with one change I'd like to make this code work even better for me. I have headers that sometimes fall on the very last row of a column and sometimes goes missed when reading the report (i.e. you don't realize a new section of the report started because it's so far down the page). I would like to try to bump this to the next column, by adding a row before it if the header falls on the last line of the page or insert a line at the start of the new column/page that gives the Header text plus "(cont'd)"

    The Header will always start with ";;ColumnHead" so perhaps knowing whether ;;ColumnHead falls on a multiple of 34 (number of rows on first page), insert row.

  12. #12
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Creating a "Double Column" Report

    I can't help you - I haven't got excel anymore - Sorry

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  2. [SOLVED] How to Add New Worksheet named "Report" and run loop through all the Sheets Except "Report
    By zaska in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-11-2016, 12:51 AM
  3. Replies: 11
    Last Post: 02-24-2016, 03:11 PM
  4. Formula for Creating a "Top Performer" feature on a production report?
    By h2holbro22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-14-2015, 03:09 PM
  5. [SOLVED] If there is any text in column "A$" on "sheet1" then move cell to column "A$" on "sheet2"
    By ckgeary in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-27-2013, 08:28 PM
  6. Creating a "report" based on a search
    By tweitzel79 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2013, 04:42 PM
  7. Creating a "report" on results from logical IF's
    By LariRudi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2012, 01:28 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1