+ Reply to Thread
Results 1 to 9 of 9

Finding Unique Values in Named Range

  1. #1
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    137

    Finding Unique Values in Named Range

    Hello forum, I have a workbook we use to count inventory. My first issue which seems to be the biggest problem is that I am trying to find Unique values in a named range. The problem is that it is taking forever to run. I have 8 named ranges on each work sheet named ZONE_101, ZONE_102..... up to ZONE_108. It takes about 3 minutes for the value to be returned just for one range. Is there a better way to do this or a solution in VBA? I am using the following formula.I am not able to post the data I am using do to privacy restrictions, but each range is anywhere from 20k rows to 75k rows so the ranges are dynamically named. I will just post the formula for one range but I am doing it 8 times and adding the values together.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Finding Unique Values in Named Range

    There are a couple of ways to do this. Since you didn't specify what you wanted done with the unique values I will assume you want them copied to another sheet (Sheet2 in this case). I also assumed each named range had a header which you didn't want counted.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: Finding Unique Values in Named Range

    I just need a total count of unique values. For example once inv is downloaded there are 57k bins we use. However there are only 29k unique values in that list.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Finding Unique Values in Named Range

    jonboy6257,

    never post confidential informations.
    But you can alway create example workbook, remove extra data and change data to hide sensitive informations.
    For exampe change names into aaaaa cccccc and prices into 9999.99 etc.

  5. #5
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: Finding Unique Values in Named Range

    I should be able to recreate some data here in a few.

  6. #6
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Finding Unique Values in Named Range

    This will give you the counts within each named range. Once again assuming there are headers:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: Finding Unique Values in Named Range

    Thank you for your replies. I may be switching to do the entire report in Access at some point as I can run a few queries and get the numbers I want.
    Thanks again,
    Jon

  8. #8
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Finding Unique Values in Named Range

    If this is so slow Jon, why don't you side step the issue?

    Store your Unique list. And add to that list when you have to.

  9. #9
    Forum Contributor
    Join Date
    10-27-2013
    Location
    Columbus Ohio
    MS-Off Ver
    Excel 2010
    Posts
    137

    Re: Finding Unique Values in Named Range

    Because of how often the list changes unfortunately. The warehouse I am doing this for is a logistical nightmare. They have a single bin with multiple items in each one. The list is huge anywhere from 300000 to 750000 unique items. There would be too much work editing the unique list. Plus with this data, I also have the item numbers stored, and the qty of items which is constantly changing. I will change this to solved. I have since stored the data in excel and written a macro to import into access where I can use SQL and create the custom reports I need more efficiently.
    Thanks,
    Jon

+ 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. Excel not finding values in a named range
    By Lifferds in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-07-2013, 09:35 AM
  2. Replies: 8
    Last Post: 02-21-2012, 11:11 AM
  3. List Unique Values in a Named Range
    By tomlancaster in forum Excel General
    Replies: 4
    Last Post: 02-17-2011, 08:53 AM
  4. Replies: 6
    Last Post: 10-14-2009, 03:01 AM
  5. Finding unique values from a filtered range
    By Rich in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-11-2006, 11:00 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