Results 1 to 10 of 10

Counting Number of Unique Values in a List based on Criteria

Threaded View

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Counting Number of Unique Values in a List based on Criteria

    I have found many solutions, both via formulas and through use of VBA, on the net for counting the number of unique values in a list.

    I want to do a count of unique values based on a criteria such that with a dataset including SiteCode and PropertyType, I want to know how many unque PropertyTypes there are with a specified SiteCode sitting alongside them.

    The PropertyTypes are strings rather than numbers and the solution will also need to cope with blanks and not count a blank as a unique value.

    My current dataset is a little over 1,000 records with 5 different SiteCodes but I will need to extend this to circa 40,000 records with circa 500 different SiteCodes.

    Given the potential future size of the dataset, the speed of calculation will also be a consideration.

    I wondered if the new "Remove Duplicates" facility on the ribbon could be used within a macro to create a temporary list either within a VBA variable or on a temporary sheet and then count the number of items in that list?

    Any pointers would be much appreciated.

    Thanks
    Last edited by greencroft; 04-03-2014 at 04:23 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Counting unique text values based on criteria
    By macrorookie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-02-2014, 09:34 AM
  2. [SOLVED] Counting Unique/Different Values based on multiple Criteria
    By jdodz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2014, 05:41 PM
  3. Counting Unique Values based on several criteria
    By GowHow in forum Excel General
    Replies: 2
    Last Post: 04-25-2012, 10:16 PM
  4. counting unique values from list with specific criteria
    By derekjames in forum Excel General
    Replies: 2
    Last Post: 12-16-2011, 06:28 PM
  5. Replies: 6
    Last Post: 10-18-2011, 07:34 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