+ Reply to Thread
Results 1 to 6 of 6

Formula that identifies distinct values in a list

  1. #1
    Registered User
    Join Date
    03-22-2015
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    42

    Formula that identifies distinct values in a list

    Hello

    I have a spreadsheet with ~ 10,000 rows. What I'm trying to do is have the word "Distinct" display in a column if the number in Column A is a unique value in that column or if its the first occurrenceof that number in the column.


    Row A B C
    1 1451 Red Sydney
    2 1451 Blue Adelaide
    3 1452 Green Melbourne
    4 1453 Yellow Sydney
    5 1454 Blue Melbourne
    6 1454 Green Perth
    7 1455 Blue Sydney

    In the example above I only want to identify and display the word "distinct" for Rows 1, 3, 4, 5, 7

    Is there a formula that can do this?

    I can't use the Delete duplicate values button as I still need the duplicates for another part of a report I'm working on.

    Thanks in advance.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: Formula that identifies distinct values in a list

    Are the numbers in Column A consecutive or can a number repeat anywhere in the list.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-22-2015
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Formula that identifies distinct values in a list

    Hi alansidman

    The numbers currently could appear anywhere in the list but I could sort them if there's no other way?

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Formula that identifies distinct values in a list

    Formula in B2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Formula in E2
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    A
    B
    C
    D
    E
    1
    Unsorted
    Sorted
    2
    120
    Distinct
    100
    Distinct
    3
    107
    Distinct
    101
    Distinct
    4
    102
    Distinct
    102
    Distinct
    5
    115
    Distinct
    107
    Distinct
    6
    114
    Distinct
    107
    7
    120
    108
    Distinct
    8
    113
    Distinct
    113
    Distinct
    9
    120
    114
    Distinct
    10
    101
    Distinct
    114
    11
    107
    115
    Distinct
    12
    114
    120
    Distinct
    13
    108
    Distinct
    120
    14
    100
    Distinct
    120
    Dave

  5. #5
    Registered User
    Join Date
    03-22-2015
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Formula that identifies distinct values in a list

    Thankyou so much!! You've saved me hours of work

  6. #6
    Forum Contributor
    Join Date
    09-18-2015
    Location
    Republic of Korea
    MS-Off Ver
    2010
    Posts
    314

    Re: Formula that identifies distinct values in a list

    Another way ...

    B2 --> =IF(COUNTIF($A$2:A2,A2)=1,"Distinct","")

    E2 --> =IF(COUNTIF($D$2:D2,D2)=1,"Distinct","")
    Last edited by chief_abound; 08-29-2016 at 03:12 AM.

+ 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. 2-Column List of Unique Distinct COMBINED Values
    By probladerunner in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-19-2016, 09:05 PM
  2. Replies: 0
    Last Post: 07-21-2015, 04:44 PM
  3. how to select distinct values from list
    By kisanvikas2015 in forum Excel General
    Replies: 14
    Last Post: 06-09-2015, 03:44 AM
  4. howto select distinct values from list
    By chris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-05-2015, 12:16 AM
  5. [SOLVED] Create validation list of distinct values
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-06-2014, 01:46 AM
  6. [SOLVED] Distinct List from Column of Values
    By dianaschar in forum Excel General
    Replies: 4
    Last Post: 03-26-2013, 11:39 AM
  7. Data Validation Returning only distinct values from a list
    By JI in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2006, 06:45 PM

Tags for this Thread

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