+ Reply to Thread
Results 1 to 5 of 5

List Unique Values in a Named Range

  1. #1
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    117

    List Unique Values in a Named Range

    Help! I am trying to list the unique values in a named range. Whilst the below formula works, I cannot seem to get it to look at named ranges in a separate sheet?

    Does anyone know how I can modify this formula to list the named ranges in a separate sheet in the active sheet?

    =IF(ISERR(SMALL(IF(FREQUENCY(MATCH(Name,Name,0),MATCH(Name,Name,0))>0,ROW(INDIRECT("1:"&ROWS(Name)))),ROWS($1:1))),"",INDEX(Name,SMALL(IF(FREQUENCY(MATCH(Name,Name,0),MATCH(Name,Name,0))>0,ROW(INDIRECT("1:"&ROWS(Name)))),ROWS($1:1))))

    Commit with CTRL+SHIFT+ENTER

    Thanks
    Last edited by NBVC; 02-17-2011 at 10:42 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: List Unique Values in a Named Range

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    117

    Re: List Unique Values in a Named Range

    Thanks for your reply - I've made a workbook with the two separate sheets.

    I have defined named ranged for 3 columns in the TEAM sheet

    E.g. "AutoGCB5" is sheet TEAM I:I

    The GCB Sheet needs to look at the TEAM sheet in columns G H and I and list the distinct values.

    E.g. AutoGCB5 has

    Tom
    Tom
    Tim
    Tim
    Tim
    Fred
    Tom
    Bob
    Frank

    But I want to show in GCB sheet

    Tom
    Tim
    Fred
    Bob
    Frank

    The formula i have in GCB sheet works if its in the same sheet, but not in a separate one.

    I cannot use Advance Filter because I plan to share this workbook.

    I'd love some help on this one ;-)
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: List Unique Values in a Named Range

    For one thing, with Array formulas, you can't have full column references..and your named ranges have full column references.

    The other thing is that you have many blanks in the Team sheet also, which have to be addressed...

    The best way would be to redefine your Named ranges using dynamically named ranges..

    So change the AutoGCB5 range to refer to:
    Please Login or Register  to view this content.
    and AutoGCB6 to refer to:\
    Please Login or Register  to view this content.
    and AutoGCB6 to refere to:
    Please Login or Register  to view this content.
    Then update the formula to eliminate the need to double evaluate the hefty array formula, in A2 of GCB sheet:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copied down...

    use same formulas in B2 and C2, adjusting what needs to be adjusted.

    Another thing, try to reduce the number of cells you copy down too.. as, again, array formulas are hefty processor hogs....
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    117

    Re: List Unique Values in a Named Range

    Thank you so much for your help - it is very much appreciated

+ 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.6.0 RC 1