+ Reply to Thread
Results 1 to 4 of 4

Non-array formula to count non-duplicates

Hybrid View

Dendrobates Non-array formula to count... 04-06-2015, 04:52 PM
TMS Re: Non-array formula to... 04-06-2015, 05:23 PM
daffodil11 Re: Non-array formula to... 04-06-2015, 05:26 PM
daddylonglegs Re: Non-array formula to... 04-06-2015, 06:30 PM
  1. #1
    Registered User
    Join Date
    04-06-2015
    Location
    Denver, CO
    MS-Off Ver
    2007
    Posts
    1

    Non-array formula to count non-duplicates

    I have a spreadsheet containing database output that I use frequently for running quick "queries" by using the filter feature. On a separate tab, I have some commonly used values calculated and displaying as a cover page of sorts.

    The problem I'm having is that my filters have fairly suddenly started slowing WAY down, taking 5-15 seconds instead of 1-2 seconds. Since I'm usually filtering multiple columns to do what I want to do, this is somewhat annoying. It seems likely that the couple of array functions I used on my cover page are the problem - deleting those resolves it and filters take a second or so once again (though I'm not sure what triggered this - the array functions are not new - maybe the dataset just got too long? If there's some other solution to this, that would be even better).

    So, I am looking for a new way to accomplish what they are doing. Essentially, I have 2 columns - Property Name and Property Type. There can be multiple entries for the same property name. The array function is counting the number of different property names with a given property type.

    Ex.
    Property Name Parcel Name Property Type
    Property 1 Parcel 1 Type A
    Property 1 Parcel 2 Type A
    Property 1 Parcel 3 Type A
    Property 2 Parcel 1 Type B
    Property 3 Parcel 1 Type A
    Property 3 Parcel 2 Type A

    I would want this to return "2", as there are two distinct Property Names that have Property Type A. Naturally, my formula is actually slightly more complicated, relying on a couple other filters as well, but that's the gist of it. Is there another way to do this? Not at all familiar with VBA but willing to give it a try.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,089

    Re: Non-array formula to count non-duplicates

    You should try a Pivot Table.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Non-array formula to count non-duplicates

    =sumproduct((c1:c5=c1)*(a1:a5<>a1))+1
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: Non-array formula to count non-duplicates

    Quote Originally Posted by Dendrobates View Post
    Is there another way to do this?
    It's possible but it would help to know which method you are currently using. You don't need to show the exact formula but an approximation of the syntax would help.

    Also, how many rows are you applying it to?
    Audere est facere

+ 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] Array Formula to count specific text ignoring duplicates.
    By JRidge in forum Excel Formulas & Functions
    Replies: 30
    Last Post: 10-07-2013, 05:31 AM
  2. Count Duplicates from VBA Array?
    By mfleming in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2011, 09:16 PM
  3. counting duplicates within array formula?
    By etmac in forum Excel General
    Replies: 5
    Last Post: 09-05-2006, 04:45 AM
  4. array formula with duplicates
    By JR573PUTT in forum Excel General
    Replies: 0
    Last Post: 02-16-2006, 05:18 PM
  5. [SOLVED] Count duplicates in an array?
    By quartz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-05-2005, 10: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