+ Reply to Thread
Results 1 to 4 of 4

Copy Multiple Columns of Data from Duplicates in 1st Column into Separate Sheets

Hybrid View

jdotking Copy Multiple Columns of Data... 06-12-2012, 11:03 AM
Fotis1991 Re: Copy Multiple Columns of... 06-12-2012, 11:55 AM
jdotking Re: Copy Multiple Columns of... 06-12-2012, 12:45 PM
Fotis1991 Re: Copy Multiple Columns of... 06-12-2012, 01:33 PM
  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    NC, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Copy Multiple Columns of Data from Duplicates in 1st Column into Separate Sheets

    Hello,

    Perhaps I am asking for the moon here, but I am trying to get the data from column B and C into a separate sheets (tabs) for each 'brand' in column A ('A' is a brand, 'B' is a brand, etc.).

    - Column A has duplicates and matches the name of the sheet i want it to go into
    - Column B will not have duplicates within each 'childbrandabbreviation' but will have duplicates within the column
    - Column C will have duplicates, it relates to both column B and column A.

    Of course v-Lookup only pulls the first match, I need all of the matches. And this can certainly be copy/pasted manually but there are 100s of brands and over 60,000 part numbers.

    An example is attached...


    Any help is greatly appreciated.

    Thank you,
    Jason
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Copy Multiple Columns of Data from Duplicates in 1st Column into Separate Sheets

    Hi and welcome to the forum.

    If you were asking for the moon,...be sure that i could not do something for this..

    But in this case, i think that i can...

    Column A, will use as helper column.

    In B1, of SheetA, use this Array formula.

    =IFERROR(INDEX(Sheet1!$B$1:$B$19;SMALL(IF(Sheet1!$A$1:$A$19=A2;ROW(Sheet1!$A$1:$A$19));COUNTIF($A$2:A2;A2)));"")
    In C1, this.
    =IFERROR(INDEX(Sheet1!$C$1:$C$19;SMALL(IF(Sheet1!$A$1:$A$19=A2;ROW(Sheet1!$A$1:$A$19));COUNTIF($A$2:A2;A2)));"")
    Copy down. Same way for the others Sheets.

    Is this, works for you?
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    06-12-2012
    Location
    NC, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Copy Multiple Columns of Data from Duplicates in 1st Column into Separate Sheets

    Fotis, thank you so much for your quick reply. When I open your updated file in 2003 it just shows '#NAME?' for all of the formatting, do you have any idea what I need to do?

    Thanks again,
    Jason



    Quote Originally Posted by Fotis1991 View Post
    Hi and welcome to the forum.

    If you were asking for the moon,...be sure that i could not do something for this..

    But in this case, i think that i can...

    Column A, will use as helper column.

    In B1, of SheetA, use this Array formula.

    =IFERROR(INDEX(Sheet1!$B$1:$B$19;SMALL(IF(Sheet1!$A$1:$A$19=A2;ROW(Sheet1!$A$1:$A$19));COUNTIF($A$2:A2;A2)));"")
    In C1, this.
    =IFERROR(INDEX(Sheet1!$C$1:$C$19;SMALL(IF(Sheet1!$A$1:$A$19=A2;ROW(Sheet1!$A$1:$A$19));COUNTIF($A$2:A2;A2)));"")
    Copy down. Same way for the others Sheets.

    Is this, works for you?

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Copy Multiple Columns of Data from Duplicates in 1st Column into Separate Sheets

    Apologize for this..

    I did not noticed that you are in Excel 2003. So function IFERROR, does not works...

    In B1

    =IF(ISERROR(INDEX(Sheet1!$B$1:$B$19;SMALL(IF(Sheet1!$A$1:$A$19=A2;ROW(Sheet1!$A$1:$A$19));COUNTIF($A$2:A2;A2))));"";INDEX(Sheet1!$B$1:$B$19;SMALL(IF(Sheet1!$A$1:$A$19=A2;ROW(Sheet1!$A$1:$A$19));COUNTIF($A$2:A2;A2))))
    In C1

    =IF(ISERROR(INDEX(Sheet1!$C$1:$C$19;SMALL(IF(Sheet1!$A$1:$A$19=A2;ROW(Sheet1!$A$1:$A$19));COUNTIF($A$2:A2;A2))));"";INDEX(Sheet1!$C$1:$C$19;SMALL(IF(Sheet1!$A$1:$A$19=A2;ROW(Sheet1!$A$1:$A$19));COUNTIF($A$2:A2;A2))))
    Both are Array formulae.

    Is it OK, now?
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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