Results 1 to 11 of 11

Count distinct values where data changes everyday

Threaded View

  1. #1
    Forum Contributor
    Join Date
    09-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    132

    Angry Count distinct values where data changes everyday

    Hi,

    I'm trying to count the distinct values within a list. My formula currently looks like this

    =IF(SUMPRODUCT(1/COUNTIF($J$17:$J$24,$J17:$J24))=SUMPRODUCT(1/COUNTIF(Resolved!$M$2:$M$53, Resolved!$M$2:$M53)), "Macro working", "Macro won't work")

    Currently it is counting the data in J17:J24 on the summary page (page where the forumla is). And it is also counting the number of unique values on the resolved tab, data M2:M53.

    Stepping in, it actually looks like:

    IF(8 = 8) [8 unique values in each list] then bring me back "Macro working". However if 8 <> 8, bring me back "Macro won't work".

    -

    The problem I am having is that the number of data in the second part of the SUMPRODUCT(1/COUNTIF( changes everyday. I need a workaround where I can simply put there M2:M500 for example, so I don't have to change the formula each time.


    So really what I want the formula to say is:

    =IF(SUMPRODUCT(1/COUNTIF($J$17:$J$24,$J17:$J24))=SUMPRODUCT(1/COUNTIF(Resolved!$M$2:$M$500, Resolved!$M$2:$M500)), "Macro working", "Macro won't work")

    Any workarounds would be great, or help!

    Many thanks
    Last edited by jonathan.haynes; 10-22-2013 at 10:20 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Count Conditional Distinct Values
    By Gos-C in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2013, 05:41 AM
  2. [SOLVED] Count Distinct Values
    By djfatboyfats in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-20-2012, 07:39 AM
  3. Count of distinct (unique) values by day
    By velorian in forum Excel General
    Replies: 7
    Last Post: 12-06-2011, 05:03 PM
  4. Count distinct values with criteria
    By greencardioid in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-29-2008, 06:48 PM
  5. Count Distinct Values?
    By bill_morgan in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-26-2005, 10:06 PM

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