+ Reply to Thread
Results 1 to 7 of 7

Move multiple rows from pivot in columns

  1. #1
    Registered User
    Join Date
    09-15-2020
    Location
    India
    MS-Off Ver
    365
    Posts
    38

    Unhappy Move multiple rows from pivot in columns

    Exsisting data format Required format
    Sr. DOA Serial DOA 1st date DOA 2nd date DOA 3rd date DOA 4th date DOA 5th date
    2104 20-06-2020 2104 20-06-2020 05-09-2020
    2104 05-09-2020 2117 26-06-2020 14-07-2020 04-06-2020
    2117 26-06-2020
    2117 14-07-2020
    2117 04-06-2020
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,540

    Re: Move multiple rows from pivot in columns

    Hello gaurav bhatia and Welcome to Excel Forum.
    The formula for the Serial column could be: =IFERROR(IF(MATCH(0,INDEX(COUNTIF(L$2:L2,A$3:A$10),,),)>COUNTA(A$3:A$10),"",INDEX(A$3:A$10,MATCH(0,INDEX(COUNTIF(L$2:L2,A$3:A$10),,),))),"")
    The formula for the DOA columns could be: =IF($L3="","",IFERROR(INDEX($B$3:$B$10,AGGREGATE(15,6,(ROW($B$3:$B$10)-ROW($B$2))/($A$3:$A$10=$L3),COLUMNS($A$1:A$1))),""))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    09-15-2020
    Location
    India
    MS-Off Ver
    365
    Posts
    38

    Re: Move multiple rows from pivot in columns

    It's correct, but when I paste the data in required columns blank cells are coming.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,540

    Re: Move multiple rows from pivot in columns

    The formula ranges will need to be changed as there are 7680 rows of data instead of the 10 rows in the original file.
    The formula for cells L3 and down* should be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula for cells M3 and down should be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    **I suggest only pulling the formula in column L down until you get a blank cell, which should be in row 4284, and it still may take a LONG time for the calculation to complete. Once the formula in cell M3 is activated (just press Enter) then you may double click the fill handle.
    Let us know if you have any questions.

  5. #5
    Registered User
    Join Date
    09-15-2020
    Location
    India
    MS-Off Ver
    365
    Posts
    38

    Re: Move multiple rows from pivot in columns

    Thanks a lot!!!

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,540

    Re: Move multiple rows from pivot in columns

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

  7. #7
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Move multiple rows from pivot in columns

    Or you could use Power Query.

    Format your source data as a table, then use:

    Please Login or Register  to view this content.
    Should be much quicker.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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] Move Data from Multiple Rows to One Row in Separate Columns
    By djpinson in forum Excel General
    Replies: 2
    Last Post: 05-13-2019, 09:20 AM
  2. Replies: 11
    Last Post: 10-24-2014, 04:50 PM
  3. [SOLVED] How to move multiple columns into rows
    By Angmar81 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-15-2013, 10:33 AM
  4. copy rows from column A and move multiple columns ...
    By jardel in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-08-2013, 03:55 PM
  5. formula to move data from multiple columns to rows
    By emexpress in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-05-2013, 02:12 PM
  6. Replies: 1
    Last Post: 11-29-2012, 06:24 PM
  7. Excel 2007 : How to move multiple rows to columns
    By RaiderMatt9 in forum Excel General
    Replies: 1
    Last Post: 03-05-2012, 08:56 PM

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