+ Reply to Thread
Results 1 to 12 of 12

Thread: Unique values formula

  1. #1
    Registered User
    Join Date
    09-30-2011
    Location
    Lithuania
    MS-Off Ver
    Excel 2010
    Posts
    44

    Unique values formula

    I am tasked with porting a spreadsheet project to Excel from Google Docs. Google features a nifty formula which returns a dynamic list of unique values in a range. By unique, I mean values which appear at least once, and not those which appear only once.

    If I wanted a list of unique values in column A, I would enter "=UNIQUE(A:A)" in, e.g. B1. Column B would then list the values that appear at least once in column A, dynamically.

    Does Excel have such a formula? I'm using the Advanced Filter feature currently, but it doesn't appear to be dynamic.

    Thank you, for any help anyone can offer with this.

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,057

    Re: Unique values formula

    There's no single inbuilt function in Excel - you could use a combination of native functions to do it or you can download Morefunc add-in (you can google it) and use UNIQUEVALUES function
    Audere est facere

  3. #3
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010
    Posts
    856

    Re: Unique values formula

    Use the following as a filter in the B column. It will return TRUE for any item which appears more than once.
    =COUNTIF(A:A,A1)>1
    If your question has been satisfactorily addressed, please consider marking it solved. Click here to see how.

    Also, you might want to add to the user's reputation by clicking the scales icon - it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  4. #4
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,057

    Re: Unique values formula

    I think Nate just wants a list of all different values (whether they appear once or multiple times) so I don't think that will work, Thomas, you need a slight adjustment

    =COUNTIF(A$A:A1,A1)=1

    That will put TRUE against the first instance of every value
    Audere est facere

  5. #5
    Registered User
    Join Date
    09-30-2011
    Location
    Lithuania
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Unique values formula

    Thank you both, I do appreciate it!

    If I needed the formula to return results from a different sheet, how would I ask that?

    I had tried to add the name at the beginning of the range, but my attempt is incorrect:

    =COUNTIF(Sheet3!A$A:A1,A1)=1

  6. #6
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010
    Posts
    856

    Re: Unique values formula

    =COUNTIF(Sheet3!A:A,A1)=1
    If your question has been satisfactorily addressed, please consider marking it solved. Click here to see how.

    Also, you might want to add to the user's reputation by clicking the scales icon - it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  7. #7
    Registered User
    Join Date
    10-07-2011
    Location
    Las Vegas, Nevada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Unique values formula

    What about generating this unique values list from another list of data for which the number of rows fluctuates daily. For example, you can take these formulas and place them into the cells next to your data and drag them down to pull out the uniques. However, what if the data you're pulling from changes and you don't have the ability to keep going in and dragging down the formulas?

    Is there a way, without any modification to the software's settings (macros, etc...), to generate the unique values list automatically?

    My project requires this to be possible.

  8. #8
    Registered User
    Join Date
    10-06-2011
    Location
    Everett, WA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Excel 2003 - Shared - Need Data Integrity

    Big log with multiple international users, must be shared, some only have Excel 2003. Want to prevent overwriting data and getting items into wrong columns, and limit some entries to their own list. Some have been keeping their own spreadsheet and then copying over into the main log, making a mess.

    Am willing to work with VBA but just a beginner with it. Simple non-VBA validation doesn't prevent overwriting, nor does it work when entering by forms. What I want is to ensure Data Integrity for metrics to report progress.

    Hoping to work with this over the weekend of 3-4dec11.

  9. #9
    Registered User
    Join Date
    09-30-2011
    Location
    Lithuania
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Unique values formula

    I'd like to re-open this thread, and dig-in a bit further in the hopes of discovering a solution to my problem.

    I'm wondering if there might be a way to achieve the effect I'm looking for with a combination of formulas and "helper columns".

    For instance, would there be a way to have a column return a count of the number of times a value in the same row appears (within a date range, also), and then assign another column to print the corresponding value to every "1" that appears, effectively producing a list of the unique values (the values that appear only once)?

    I've attached a sample spreadsheet with an idea of what I'm getting at. Many, many thanks in advance to anyone who can help me! Note in the spreadsheet, I'm going with a monthly date parameter, so that the unique values are specific to the month. Ideally, this would be a range of months, e.g. April-July, etc.
    Attached Files Attached Files

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,223

    Re: Unique values formula

    Nate, please check rules:

    2. Don't post a question in the thread of another member -- start your own. If you feel it's particularly relevant, provide a link to the other thread.
    "Relax. What is mind? No matter. What is matter? Never mind!"

  11. #11
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,223

    Re: Unique values formula

    Sorry, didn't see that's your post... Here:
    Attached Files Attached Files
    "Relax. What is mind? No matter. What is matter? Never mind!"

  12. #12
    Registered User
    Join Date
    09-30-2011
    Location
    Lithuania
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Unique values formula

    This seems like precisely what I have been looking for. It will give me, not only the ability to count unique values, but also, another requirement, to be able to count multiple instances, but the number of instances. Many thanks!

+ 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.2.0