+ Reply to Thread
Results 1 to 8 of 8

Formula to extract unique values/distinct values in rows in excel

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Formula to extract unique values/distinct values in rows in excel

    Looking for formula to extract unique values/distinct values in row A2:A116 to D2:D5 for list of companies in column A and B2:B20 in column B to E2:E4 in excel. See sample Excel file. Desired results in green color.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,275

    Re: Formula to extract unique values/distinct values in rows in excel

    "D2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    By pressing SHIFT+CTRL+ENTER

    This as per your requirement.
    But i don't understand your logic : "Abaco Air" mentioned year 2000, 2001, 2002, what about rest. Those is blank.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Formula to extract unique values/distinct values in rows in excel

    avk: thanks alot for the formula. it is working but are you able to provide the non-array index formula to extract the same data? Non-array is preferable.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Formula to extract unique values/distinct values in rows in excel

    Non-array

    In D2
    =IFERROR(LOOKUP(2,1/(COUNTIF($D$1:D1,$A$2:$A$116)=0),$A$2:$A$116),"")


    In E2
    =IFERROR(LOOKUP(2,1/(COUNTIF($E$1:E1,$B$2:$B$20)=0),$B$2:$B$20),"")


    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,731

    Re: Formula to extract unique values/distinct values in rows in excel

    Another option
    =IFERROR(INDEX($A$2:$A$116,MATCH(0,INDEX(COUNTIF($D$1:D1,$A$2:$A$116),0),0)),"")
    and
    =IFERROR(INDEX($B$2:$B$20,MATCH(0,INDEX(COUNTIF($E$1:E1,$B$2:$B$20),0),0)),"")

  6. #6
    Registered User
    Join Date
    05-06-2020
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    2

    Re: Formula to extract unique values/distinct values in rows in excel

    Hi All,

    I have values in a row from A to G as 10 20 30 10 40 20 30. I want unique values separated with 10,20,30,40. Help me with the formule.

    Thanks

  7. #7
    Registered User
    Join Date
    05-06-2020
    Location
    India
    MS-Off Ver
    MS Office 2007
    Posts
    2

    Re: Formula to extract unique values/distinct values in rows in excel

    Hi All,

    I have values in a row from A to G as 10 20 30 10 40 20 30. I want unique values as 10,20,30,40 in column H. Help me with the formula.

    Thanks

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,837

    Re: Formula to extract unique values/distinct values in rows in excel

    Administrative Note:

    Hello ymovies0 and Welcome to Excel Forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] Excel formula to extract unique values based on conditions
    By gideone in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-17-2019, 10:44 AM
  2. Replies: 11
    Last Post: 10-27-2016, 07:33 PM
  3. Count of Values (Rows) of Most Recent Consecutive Streak (2+ Distinct Values)
    By ExcelForum88 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-13-2016, 12:26 PM
  4. Finding unique distinct values
    By mrichard in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2016, 11:07 AM
  5. Replies: 0
    Last Post: 07-21-2015, 04:44 PM
  6. [SOLVED] Excel - Count distinct occurences and copy unique values
    By random0munky in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-26-2015, 10:41 PM
  7. [SOLVED] Formula to extract unique values from two excel tabs and sort alphabetically
    By rshukla in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2013, 01:48 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