+ Reply to Thread
Results 1 to 3 of 3

Transpose multiple rows of data into a single row

  1. #1
    Registered User
    Join Date
    03-05-2010
    Location
    Essex, England
    MS-Off Ver
    Excel 2003
    Posts
    62

    Transpose multiple rows of data into a single row

    I want to create a horizontal dataset from a vertical dataset so I can use it to create a mail merge which details outstanding invoices.

    From this:

    Provider Invoice No. Invoice Date Invoice Amount
    1 XXXX1 01/04/2016 £1.00
    1 XXXX2 02/04/2016 £2.00
    2 XXXX3 03/04/2016 £3.00


    To this:

    Provider Invoice No. 1 Invoice Date 1 Invoice Amount 1 Invoice No. 2 Invoice Date 2 Invoice Amount 2
    1 XXXX1 01/04/2016 £1.00 XXXX2 02/04/2016 £2.00
    2 XXXX3 03/04/2016 £3.00

    There is no upper limit to the number of outstanging invoices for a single provider although it is unlikely to be greater than 20.

    I have found a macro for a 2 column dataset which I think will do what I need but I don't understand the code enough to be able to amend it and was hoping that someone could help me out :-)

    Please Login or Register  to view this content.
    Thanks in advance
    Last edited by pixifaery; 06-02-2016 at 04:44 PM. Reason: Add code tags

  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: Transpose multiple rows of data into a single row

    Here's a routine by one of the masters in this forum - I didn't write it but it works on your sample:

    Please Login or Register  to view this content.
    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 Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Transpose multiple rows of data into a single row

    Thanks for the rep! Glad it's what you needed

+ 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] Macro to transpose multiple rows to a single column
    By Gup in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 10-12-2014, 03:05 PM
  2. Transpose multiple rows of data to a single row
    By dansteg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2014, 03:09 PM
  3. [SOLVED] Transpose multiple rows to single row
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2014, 04:59 AM
  4. Transpose Multiple Rows into a Single Column
    By vnascimento in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-04-2013, 08:47 AM
  5. Replies: 5
    Last Post: 05-25-2013, 07:12 AM
  6. [SOLVED] Copy and Transpose Data From Single Row to Multiple Rows
    By delinia in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-08-2013, 06:26 PM
  7. Transpose multiple rows into 1 single row dependent on name
    By Angiec50 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2012, 03:30 AM

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