+ Reply to Thread
Results 1 to 17 of 17

Listing Unique values

  1. #1
    Registered User
    Join Date
    07-18-2014
    Location
    Rhode Island
    MS-Off Ver
    2007
    Posts
    18

    Listing Unique values

    I looked the function up but I can't make it work.

    So in one tab (lets call it Tab1) I'll have a bunch of data and what I'm trying to do is to create on another one (Tab2) a list of all the uniques Approval #s I have on Tab1.

    So for example Tab 1 Column B would have
    1
    1
    1
    1
    2
    2
    2
    3
    3
    3
    4
    4

    and I want Tab 2 to pull that info and show it to me like this
    1
    2
    3
    4

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Listing Unique values

    There is a "Remove Duplicates" function built into Excel under the Data tab that will do this for you, or does it need to be done with a formula?
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Listing Unique values

    Hi

    See the file!!

    Regard
    micope21
    Attached Files Attached Files
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Listing Unique values

    Is your REAL data numbers like you have posted?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    07-18-2014
    Location
    Rhode Island
    MS-Off Ver
    2007
    Posts
    18

    Re: Listing Unique values

    Quote Originally Posted by Speshul View Post
    There is a "Remove Duplicates" function built into Excel under the Data tab that will do this for you, or does it need to be done with a formula?
    It has to be in a formula. One tab would be data dump, the other would work like a query basically.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Listing Unique values

    Will there be gaps (blank cells) in the data and (to repeat Tony's question) are the real data numbers or text, or a mixture?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  7. #7
    Registered User
    Join Date
    07-18-2014
    Location
    Rhode Island
    MS-Off Ver
    2007
    Posts
    18

    Re: Listing Unique values

    Quote Originally Posted by Tony Valko View Post
    Is your REAL data numbers like you have posted?
    No, I will probably have to post the real one.

  8. #8
    Registered User
    Join Date
    07-18-2014
    Location
    Rhode Island
    MS-Off Ver
    2007
    Posts
    18

    Re: Listing Unique values

    Quote Originally Posted by Glenn Kennedy View Post
    Will there be gaps (blank cells) in the data and (to repeat Tony's question) are the real data numbers or text, or a mixture?

    All numbers, no blanks

  9. #9
    Registered User
    Join Date
    07-18-2014
    Location
    Rhode Island
    MS-Off Ver
    2007
    Posts
    18

    Re: Listing Unique values

    Quote Originally Posted by micope21 View Post
    Hi

    See the file!!

    Regard
    micope21
    Thank you so much micope21! I'm trying to adjust the formula to what I have

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Listing Unique values

    Micope21's reply should do the job for you, in that case.

  11. #11
    Registered User
    Join Date
    07-18-2014
    Location
    Rhode Island
    MS-Off Ver
    2007
    Posts
    18

    Re: Listing Unique values

    Tab name Table, Column B

    Approval #
    3255695
    3255695
    3255695
    3255695
    3255856
    3255856
    3256069
    3256069
    3256069
    3256069
    3256069
    3256195
    3256195
    3256195
    3256195
    3256241
    3256241
    3256241
    3256241
    3256241
    3256241
    3256241
    3256307
    3256307


    And then on the next tab I would have the unique values listed. I tried to modify the other excel file but I lost myself after the countif. Is there a difference when it comes to the fact that this list will keep growing? So I would just have Index(Table!B:B) for ex

  12. #12
    Registered User
    Join Date
    07-18-2014
    Location
    Rhode Island
    MS-Off Ver
    2007
    Posts
    18

    Re: Listing Unique values

    I guess it has to be limited...

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Listing Unique values

    I'd normally use a Table for the source info. then the code updates every time you add another row.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    07-18-2014
    Location
    Rhode Island
    MS-Off Ver
    2007
    Posts
    18

    Re: Listing Unique values

    Quote Originally Posted by Glenn Kennedy View Post
    I'd normally use a Table for the source info. then the code updates every time you add another row.
    That should do it! How do you name column B as a Table though?

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

    Re: Listing Unique values

    Try this Array Formula which requires confirmation with Ctrl+Shift+Enter.

    On Sheet2
    In G2
    Please Login or Register  to view this content.
    and then copy down until you get blank cells.

    Notice that the formula is starting from G2 hence the range which is referenced in Countif is the one cell above the first formula cell. So if you want to populate this unique list in say Col. M and starting from M5, the countif in the formula would be COUNTIF($M$4:M4, which is one cell above the first formula cell.
    Attached Files Attached Files
    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.

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,137

    Re: Listing Unique values

    To make a Table. Select anc cell inthe data block that you want to make into a table in Sheet 1. Then INSERT TABLE (ensuring you make the corrrect choice about header rows) and there it is...

  17. #17
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Listing Unique values

    Try this...

    On some sheet...

    Enter this formula in A2:

    =MIN(Table!B2:B25)

    Enter this array formula** in A3:

    =IFERROR(1/(1/MIN(IF(Table!B$2:B$25>A2,Table!B$2:B$25))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Copy down until you get blanks.

+ 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] Listing all the unique values from one column into another column
    By Yoshi64 in forum Excel General
    Replies: 8
    Last Post: 01-06-2014, 06:02 PM
  2. [SOLVED] Listing unique values without Pivot Table.
    By bungslea in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2013, 12:19 AM
  3. Listing unique values and summing w/o a pivot table
    By Drew Goldberg in forum Excel General
    Replies: 24
    Last Post: 02-16-2013, 09:52 PM
  4. Listing many unique values based on an if statement
    By MCoev in forum Excel General
    Replies: 6
    Last Post: 01-16-2012, 01:36 PM
  5. Listing Unique Values from a Column
    By Rabi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2008, 09:39 AM

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