+ Reply to Thread
Results 1 to 3 of 3

Unique value in a column

Hybrid View

  1. #1
    Registered User
    Join Date
    09-18-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Unique value in a column

    Hi,

    I want to get the unique values in a column for a particular value in another column.

    eg:

    Column X Column Y

    1234 A
    1234 B
    1234 C
    3456 A
    5678 A
    7896 A
    7896 B

    Here I want to find the values in column X whose value in column Y is "A".
    But if the same field has B or C it should not be selected.
    e.g. in this case my list should yield 3456 and 5678 because they have only "A" in column Y and not "B" or "C".

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

    Re: Unique value in a column

    THis maybe?
    Attached Files Attached Files
    Never use Merged Cells in Excel

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Unique value in a column

    If you sort your data Column X ascending and then by Column Y a-z then
    in Z2
    =IF(AND(X2<>X3,Y2="A"),X2,"")
    Drag fill down

    Demo workbook attached
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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