+ Reply to Thread
Results 1 to 5 of 5

columns with duplicates to one column and rows help?

Hybrid View

  1. #1
    Registered User
    Join Date
    11-27-2018
    Location
    UK
    MS-Off Ver
    2016
    Posts
    5

    columns with duplicates to one column and rows help?

    Hi all,

    I need some help manipulating some data. I have attached a picture with an example. The data i have is in the left hand side format and i need it to look like the right hand side format.

    Any idea what i need to do?

    Thank you!

    Capture.JPG

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: columns with duplicates to one column and rows help?

    Maybe i E2, copied down:
    =IFERROR(INDEX($A$2:$A$15,MATCH(0,INDEX(COUNTIF($E$1:$E1,$A$2:$A$15),0),0)),"")

    and in f2, copied across and down:

    =IFERROR(INDEX($B:$B,AGGREGATE(15,6,ROW($B$2:$B$15)/($A$2:$A$15=$E2),COLUMNS($F:F))),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    11-27-2018
    Location
    UK
    MS-Off Ver
    2016
    Posts
    5

    Re: columns with duplicates to one column and rows help?

    Hi Glenn! Thank you so much for taking the time to reply to my post.

    The formulae are working pretty well on a small scale but it's really struggling with the 39,000 entries on my spreadsheet..

    I assume i might be better off asking in the VBA sectin?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: columns with duplicates to one column and rows help?

    The slow bit will be column E. As an alternative...

    Copy Column A into column E

    data/data tools/remove duplicates/cotinue with current selection/check column E only and then remove duplicates.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: columns with duplicates to one column and rows help?

    Use helper column C. This avoids Countif Function which is slower.
    In C2 then drag down

    =IF(A1<>A2,1,"")

    In F2 then drag down

    =IFERROR(INDEX($A$2:$A$20,AGGREGATE(15,6,ROW($A$2:$A$20)/($C$2:$C$20=1),ROWS($F$2:$F2))),"")

    In G2 then drag across

    =IFERROR(INDEX($B$2:$B$20,AGGREGATE(15,6,ROW($B$2:$B$20)/($A$2:$A$20=$F2),COLUMNS($G$2:G2))-ROW($A$2)+1),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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] How do I find duplicates rows and columns?
    By taylorsm in forum Excel General
    Replies: 4
    Last Post: 05-15-2018, 01:12 PM
  2. [SOLVED] Remove rows based on duplicates in certain columns, and merge data from another column
    By yanagi600 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 01-02-2013, 04:17 PM
  3. How to delete rows in two columns with duplicates?
    By sem in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2012, 04:46 AM
  4. Need to combine like rows by duplicates in 2 columns
    By toolmanwill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2011, 12:58 AM
  5. Finding rows with duplicates in two columns
    By James McMurray in forum Excel General
    Replies: 3
    Last Post: 07-18-2008, 07:03 PM
  6. Replies: 1
    Last Post: 04-17-2008, 03:15 PM
  7. Rows to columns and delete duplicates
    By msick in forum Excel General
    Replies: 0
    Last Post: 04-19-2005, 09:53 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