+ Reply to Thread
Results 1 to 5 of 5

Count of Distinct function/ Formula based on multiple criteria

  1. #1
    Registered User
    Join Date
    07-02-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 365
    Posts
    51

    Question Count of Distinct function/ Formula based on multiple criteria

    Dear All,

    I have a dataset with lots of data and duplicate names on other geographies and report from same area on multiple days
    So I need a condition based on Geographic and based on day [Orange highlighted] ... ONCE the unique value is identified so i need "1" in front of that row.

    Earlier i had a similar question of which was sorted with following formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Here is a little modification is that earlier condition was limited to two duplicates whereas in this dataset i can have data upto 7 days for each area starting from any day upto 7.

    I have given at the end of table what I want from FORMULA.

    CR Data.jpeg


    Attachment for kind reference.
    Attached Files Attached Files
    Last edited by naveeddil; 05-08-2019 at 05:47 AM.

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Count of Distinct function/ Formula based on multiple criteria

    Try this in L2 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Count of Distinct function/ Formula based on multiple criteria

    You can use this formula in cell L2:

    =IF(COUNTIFS(E$2:E2,E2,G$2:G2,G2,H$2:H2,H2,I$2:I2,I2)=1,1,"")

    then copy down.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    07-02-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 365
    Posts
    51

    Re: Count of Distinct function/ Formula based on multiple criteria

    Thank You both !

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Count of Distinct function/ Formula based on multiple criteria

    You are welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Distinct function/ Formula or Unique Data based on multiple criteria
    By naveeddil in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-14-2019, 10:49 PM
  2. Divide into distinct groups based on multiple criteria
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2019, 10:36 PM
  3. Sum column and count distinct values in another based on multiple criteria
    By mike.greene in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-12-2015, 11:50 AM
  4. [SOLVED] Count Distinct Numbers - Multiple Criteria
    By Gos-C in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-29-2013, 12:21 PM
  5. Distinct count based on multiple criteria - am I on the right track?
    By thedunnyman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2012, 07:36 AM
  6. Replies: 5
    Last Post: 03-13-2012, 06:05 AM
  7. Excel 2007 : Count distinct using multiple criteria
    By ExcelinginSeattle in forum Excel General
    Replies: 2
    Last Post: 12-17-2009, 02:26 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