+ Reply to Thread
Results 1 to 17 of 17

Pulling two lists into one, and showing duplicates.

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263

    Pulling two lists into one, and showing duplicates.

    I know it's possible to have lists referenced and show an answer, but is it possible to do so with duplicates, and showing said duplicates?

    Attached is a file, all I need to do is reference the ID, and show said duplicates and where they are.

    I could use something like this:

    =IFERROR(INDEX('Jobs List'!$F:$F,MATCH(1,INDEX(('Jobs List'!$B:$B=$AG$3)*('Jobs List'!$B:$B=$AG$3),0),0)),IFERROR(INDEX(Archive!$F:$F,MATCH(1,INDEX((Archive!$B:$B=$AG$3)*(Archive!$B:$B=$AG$3),0),0)),""))
    But the problem is it should show only the first duplicate and ignore the rest.

    I know it's possible, I just don't have the skills to do so. If someone can help It be appreciated.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Pulling two lists into one, and showing duplicates.

    Hi

    Why not use in conditional formatting/manage rules/ New Rule/Format only unique or dupicate values/dupicate?

    If name are different and ID are the same? Both colour will come up.

    If name and ID are the same? The yes need countif or row to go with index and match.
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  3. #3
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263

    Re: Pulling two lists into one, and showing duplicates.

    Quote Originally Posted by micope21 View Post
    Hi

    Why not use in conditional formatting/manage rules/ New Rule/Format only unique or dupicate values/dupicate?

    If name are different and ID are the same? Both colour will come up.

    If name and ID are the same? The yes need countif or row to go with index and match.

    Because what is going to be required is that in a field lets say A1 someone is going to type in an ID, and I want the list to self populate. If I could do what you suggested I would, but it's not as easy as that...

  4. #4
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Pulling two lists into one, and showing duplicates.

    Quote Originally Posted by Cyberpawz View Post
    Because what is going to be required is that in a field lets say A1 someone is going to type in an ID, and I want the list to self populate. If I could do what you suggested I would, but it's not as easy as that...
    Ok. Just be clear.
    You want to type in id and the name come up?
    Is that right?

    Even same id. but 2 different name. You want to show 2 name with same id?

    Let me know if that what you looking for?

  5. #5
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263

    Re: Pulling two lists into one, and showing duplicates.

    Exactly. here, let me show you what I have so far.
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Pulling two lists into one, and showing duplicates.

    Try this:

    In I4 add helper formula:

    =IF(H4=$C$2,COUNT(I$3:I3)+1,"")

    copied down

    In L4 add helper formula:

    =IF(K4=$C$2,MAX($I$4:$I$7)+COUNT(L$3:L3)+1,"")

    then in B7 use formula:

    =IFERROR(INDEX(G$4:G$7,MATCH(ROWS(B$7:B7),$I$4:$I$7,0)),IFERROR(INDEX(J$4:J$7,MATCH(ROWS(B$7:B7),$L$4:$L$7,0)),""))

    copied to next column and down.

    In D7:

    =IF(ISNUMBER(MATCH(ROWS(D$7:D7),$I$4:$I$7,0)),$G$2,IF(ISNUMBER(MATCH(ROWS(D$7:D7),$L$4:$L$7,0)),$J$2,""))

    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  7. #7
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263

    Re: Pulling two lists into one, and showing duplicates.

    Quote Originally Posted by NBVC View Post
    Try this:

    In I4 add helper formula:

    =IF(H4=$C$2,COUNT(I$3:I3)+1,"")

    copied down

    In L4 add helper formula:

    =IF(K4=$C$2,MAX($I$4:$I$7)+COUNT(L$3:L3)+1,"")

    then in B7 use formula:

    =IFERROR(INDEX(G$4:G$7,MATCH(ROWS(B$7:B7),$I$4:$I$7,0)),IFERROR(INDEX(J$4:J$7,MATCH(ROWS(B$7:B7),$L$4:$L$7,0)),""))

    copied to next column and down.

    In D7:

    =IF(ISNUMBER(MATCH(ROWS(D$7:D7),$I$4:$I$7,0)),$G$2,IF(ISNUMBER(MATCH(ROWS(D$7:D7),$L$4:$L$7,0)),$J$2,""))

    copied down
    Perfect, thanks again!... how did you ever learn this stuff?

  8. #8
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Pulling two lists into one, and showing duplicates.

    NBVC formula will work.

    Sorry I can't help you now cos I'm at work till evening.

    Hope NBVC formula solved your plm.

    Cheers

  9. #9
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263

    Re: Pulling two lists into one, and showing duplicates.

    Hit a snag... I'm using this:

    =IF($D1=NCMR!$AG$4,COUNT($R$1:R1)+1,"")
    I have two duplicates, K11200811 Rev A

    It isn't showing it, although as far as I can tell the code is written correctly. Can you take a peek and see where I may be going wrong?

    Here is the sheet.
    Attached Files Attached Files

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Pulling two lists into one, and showing duplicates.

    Start in R2 with:

    =IF($D2=NCMR!$AG$4,COUNT($R$1:R1)+1,"")

    copied down.

    The COUNT($R$1:R1) should be upto the row prior to the active row.

  11. #11
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263

    Re: Pulling two lists into one, and showing duplicates.

    I knew it was something simple like that, thanks... still like to know how you learned all this stuff.

  12. #12
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263

    Re: Pulling two lists into one, and showing duplicates.

    Got a quick question...
    =IFERROR(INDEX('Jobs List'!$C:$C,MATCH(ROWS(AG$12:AG12),'Jobs List'!$R:$R,0)),IFERROR(INDEX(K$8:K$11,MATCH(ROWS(C$7:C7),$M$8:$M$11,0)),""))
    Is there a way to make it so that it looks only through C3 to the bottom of the sheet, sort of like C$3:C?

  13. #13
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Pulling two lists into one, and showing duplicates.

    Should it matter? It is only going to look for numbers in column R and index against those in C.

  14. #14
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263

    Re: Pulling two lists into one, and showing duplicates.

    I realized that after looking at the formula more, thanks again for the help

    Although in my case I think it does... I have row 1 and 2 as headers, while row 3 down is where the detail goes.
    Last edited by Cyberpawz; 05-09-2012 at 12:25 PM.

  15. #15
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Pulling two lists into one, and showing duplicates.

    That is still ok... as row 1 and 2 shouldn't result in matches to the code, and the matching should really start at row 3....

  16. #16
    Forum Contributor
    Join Date
    11-11-2007
    Posts
    263

    Re: Pulling two lists into one, and showing duplicates.

    Except when there is nothing is the part field, it shows the top information. So if there are description fields it will show said fields.

  17. #17
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Pulling two lists into one, and showing duplicates.

    Can you show me what you mean?

+ 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