+ Reply to Thread
Results 1 to 3 of 3

returning distinct values from a table

  1. #1
    Registered User
    Join Date
    07-30-2014
    Location
    miami, fl
    MS-Off Ver
    excel 2010
    Posts
    4

    returning distinct values from a table

    i am having a bit of trouble figuring out a way to make a formula for this. i have a set of cells and i want it to return all of the distinct or unique values within that matrix. for example, lets say this table charts how many sales an employee makes in a week

    sun mon tues weds thurs fri sat
    john doe 1 0 3 2 3 0 0
    jane doe 0 8 0 1 0 7 0
    james doe 3 3 2 3 2 1 1

    the desired output would be: 0,1,2,3,7,8

    i dont want to be copying all of the cells or doing a lot of manipulation - i know i can copy, sort, and get unique values that way - i want a formula where as i plug in values, this field is updated to include all of the distinct or unique values. i am hoping someone can help me out - thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: returning distinct values from a table

    Hi

    Assuming your number values in B2:H4,

    In K2, write the minimum value:

    =MIN(B2:H4)

    In K3 this array formula:

    =IF(MAX($K$2:K2)=MAX($B$2:$H$4),"",MIN(IF($B$2:$H$4>K2,$B$2:$H$4)))

    This is an array formula, you have to confirm it with CTRL-SHIFT-ENTER.

    Copy down
    Last edited by lecxe; 07-31-2014 at 06:42 AM.

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

    Re: returning distinct values from a table

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed by a Moderator, you may continue in your other thread where you have got many replies from the forum members.

    http://www.excelforum.com/excel-gene...m-a-table.html
    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.

+ 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. Returning multiple distinct/repeating values for vlookup or index-match
    By amatvien in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-21-2018, 01:14 PM
  2. Pivot Table with Distinct Values
    By Ziggy4e in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-21-2014, 11:11 PM
  3. How to count distinct values from table in pivot table
    By gopijadhav in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-04-2014, 07:14 AM
  4. [SOLVED] 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
  5. [SOLVED] Count Distinct Values by Group Using Pivot Table (NM)
    By MCP in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2005, 06:06 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