+ Reply to Thread
Results 1 to 8 of 8

**SOLVED**Extracting Unique Values Based On The Value In A Cell

  1. #1
    Registered User
    Join Date
    02-13-2013
    Location
    Rogers
    MS-Off Ver
    Excel 2007
    Posts
    46

    **SOLVED**Extracting Unique Values Based On The Value In A Cell

    Good morning,

    I am hoping someone can help me out with a formula I'm having trouble with. In the attached, Sheet 1 contains two columns. Column A contains reference numbers that may be duplicated many times. Column B contains the correlating associate reference numbers that are related to column A's reference numbers and may contain duplicates as well.

    What I am hoping to do in sheet 2 is key in the reference number in cell A2 and then have a formula in column B that will pull back, without duplicates, the unique associate reference numbers found in column B of sheet 1. Hope that makes sense and I'm sure I'm just missing something very simple but haven't had enough coffee yet. I have a formula in the works but it's not extracting everything quite correctly. Any help would be appreciated.

    Thanks in advance!
    Attached Files Attached Files
    Last edited by rlh06; 10-09-2014 at 09:28 AM.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extracting Unique Values Based On The Value In A Cell

    You almost got it.

    =IFERROR(INDEX(Sheet1!$B$2:$B$11,SMALL(IF(Sheet1!$A$2:$A$11=Sheet2!$A$2,ROW(Sheet2!$A$2:$S$11)-1),ROWS($B$2:B2))),"")

    Correction in red
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    02-13-2013
    Location
    Rogers
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Extracting Unique Values Based On The Value In A Cell

    Thanks, brother. That will do the trick!

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: **SOLVED**Extracting Unique Values Based On The Value In A Cell

    To get the unique associated ref# associated with 9611, try this.....

    On Sheet2
    In B2 (Array Formula)
    Please Login or Register  to view this content.
    and copy down.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Registered User
    Join Date
    02-13-2013
    Location
    Rogers
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: **SOLVED**Extracting Unique Values Based On The Value In A Cell

    Awesome, sktneer. This method works nicely too. Always good to have a couple options handy.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: **SOLVED**Extracting Unique Values Based On The Value In A Cell

    Thank you for the feedback!

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: **SOLVED**Extracting Unique Values Based On The Value In A Cell

    If I am not wrong you are interested in unique associated ref# for 9611 (being in A2) not all the associated ref# for 9611 including duplicates. Right?
    If so, the formula I suggested will return only the unique ref# without duplicates.

    Thanks for the feedback.

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,028

    Re: **SOLVED**Extracting Unique Values Based On The Value In A Cell

    rlh06,

    Please don't write SOLVED in the title. Rather select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Never use Merged Cells in Excel

+ 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. Index formula that returns only unique values based on cell value
    By wakerider05 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-05-2014, 09:37 AM
  2. Copy unique rows based on two cell values
    By ArtySin in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-17-2014, 04:24 PM
  3. Count unique values based on value in another cell in same row
    By danbak in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-08-2013, 03:54 AM
  4. Replies: 0
    Last Post: 03-08-2012, 12:18 PM
  5. Replies: 2
    Last Post: 03-03-2012, 12:58 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