+ Reply to Thread
Results 1 to 12 of 12

How to append multiple columns into two.

  1. #1
    Registered User
    Join Date
    01-16-2024
    Location
    Canada
    MS-Off Ver
    Offic 365
    Posts
    5

    Question How to append multiple columns into two.

    Hello,
    I have an Excel report that's coming out of one of our systems that has the following columns:

    Folder / Name / Company / Counterparty / Effective Date / Termination Date / Fee Type 1 / Fee Amount 1 / Fee Type 2 / Fee Amount 2 / Fee Type 3 / Fee Amount 3 ..... Fee Type 23 / Fee Amount 23

    I don't know how to create a macro that will take all the Fee Type and Fee Amount columns and append all of them into two columns instead of the 46 I currently have.
    I want the first columns to repeat themselves and then append the Fee columns in two.

    Thank you for your support!
    Marianne

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: How to append multiple columns into two.

    Welcome to the forum. It would help us to help you if you upload an example file. Follow instructions in yellow section above.

  3. #3
    Registered User
    Join Date
    01-16-2024
    Location
    Canada
    MS-Off Ver
    Offic 365
    Posts
    5

    Re: How to append multiple columns into two.

    Sorry, forgot to add it! Please see attached!
    Thank you!
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,386

    Re: How to append multiple columns into two.

    Definitely go for power query in this case
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-16-2024
    Location
    Canada
    MS-Off Ver
    Offic 365
    Posts
    5

    Re: How to append multiple columns into two.

    That's not the result I was looking for - I want the Fee Types to be one column and Fee Amounts to be another column, where Fee Type 1 and Fee Amount 1 are side by side.

  6. #6
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: How to append multiple columns into two.

    Here is an option for you. If the results are not what you expected please add an example.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-16-2024
    Location
    Canada
    MS-Off Ver
    Offic 365
    Posts
    5

    Re: How to append multiple columns into two.

    Not exactly what I was going for...
    Attached is what I'm expecting
    Thank you!
    Attached Files Attached Files
    Last edited by emaioudamari; 01-16-2024 at 11:00 AM.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: How to append multiple columns into two.

    From Maniacb;s code

    Please Login or Register  to view this content.
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  9. #9
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: How to append multiple columns into two.

    Here is a easy to understand loop...
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by sintek; 01-16-2024 at 01:04 PM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  10. #10
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: How to append multiple columns into two.

    You could still use Power Query. See attached.
    Attached Files Attached Files
    Rory

  11. #11
    Registered User
    Join Date
    01-16-2024
    Location
    Canada
    MS-Off Ver
    Offic 365
    Posts
    5

    Re: How to append multiple columns into two.

    That worked perfectly, thank you!

  12. #12
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: How to append multiple columns into two.

    Just for the fun of it, here my completed option.

    Please Login or Register  to view this content.

+ 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] Append several columns into two
    By samparker095 in forum Excel General
    Replies: 14
    Last Post: 02-14-2022, 09:59 AM
  2. Append selected columns from multiple sheets into one sheet
    By TallOne in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-17-2021, 03:33 AM
  3. Copy specific columns from multiple workbooks into(append) a new sheet.
    By praveendk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-15-2019, 07:04 AM
  4. VLOOKUP formula help to append multiple columns to data range
    By LJB2101 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-13-2016, 10:30 PM
  5. Replies: 3
    Last Post: 10-08-2015, 04:15 PM
  6. multiple columns data append in single column
    By suresh3566 in forum Excel General
    Replies: 3
    Last Post: 06-11-2011, 07:52 AM
  7. [SOLVED] Append Columns to another column
    By sean_f in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2006, 11:35 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