+ Reply to Thread
Results 1 to 8 of 8

Count number of unique instances

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Count number of unique instances

    Hello, please see my attachment. in cell E2 (Yellow) I want to count the number of unique times in column B where the date in column A is today.

    As you can see I have typed this in as 36, but would like this doe by formula - ideally not sumproduct or something that is quite a heavy calculation formula.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Count number of unique instances

    deleted, now after rereading it a second time I see what you want. working on that one now.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: Count number of unique instances

    Ok thank you

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,684

    Re: Count number of unique instances

    I got you there but mine took two helper columns. I did countif(s) in C and D then a countifs in F2.
    this in C =IF(COUNTIF($B$2:B2,B2)>1,"",1) autofilled down
    this in D =IF(COUNTIF($A$2:A2,A2)>1,"",1) autofilled down
    this for the count total for both today and unique times... =COUNTIFS(A:A,TODAY(),C:C,1)
    If I think longer on it maybe I can figure out a way to consolidate all.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: Count number of unique instances

    Thanks for the reply, Ideally want to avoid helper columns aswell though and run it through one formula

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,707

    Re: Count number of unique instances

    Try array entering this formula.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    =SUM(IF(FREQUENCY(IF($A$2:$A$765=TODAY(),$B$2:$B$765),$B$2:$B$765),1))
    Dave

  7. #7
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: Count number of unique instances

    Hello, thank you - I'd already worked out a way using array but your formula is tidier.

    Thank you
    Last edited by AliGW; 02-10-2020 at 07:47 AM. Reason: Please don't quote unnecessarily!

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,707

    Re: Count number of unique instances

    Quote Originally Posted by cmb80 View Post
    Hello, thank you - I'd already worked out a way using array but your formula is tidier.

    Thank you
    Care to share?

+ 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. Count unique instances
    By Madore in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-31-2017, 12:19 PM
  2. Replies: 4
    Last Post: 09-08-2016, 01:35 PM
  3. Formula to count unique instances
    By NS4Excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2015, 05:20 PM
  4. Unique count of number of instances
    By arnab0711 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-08-2013, 03:09 AM
  5. Count Unique instances across several Columns
    By Leigh.Odonnell in forum Excel General
    Replies: 5
    Last Post: 05-14-2012, 06:05 PM
  6. Search a list and count unique instances and match
    By eeanil in forum Excel General
    Replies: 2
    Last Post: 04-24-2012, 12:36 AM
  7. Count unique instances
    By meweaver27 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-28-2007, 09:57 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