+ Reply to Thread
Results 1 to 7 of 7

How to count unique names on specific date for daily report?

  1. #1
    Registered User
    Join Date
    01-23-2019
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    4

    How to count unique names on specific date for daily report?

    Hello everyone,

    I need help with to process some data.

    Data.JPG

    Problem 1: Can you please show me I need to use so that i can have result for example, "3" in I6 column (Andrea, Thomas and Nicky counted as "3" even they appear multiple times)

    Problem 1.JPG


    Problem 2: What formula used to show that on each day, a certain number of name hit either 4 Flags, 3 Flags etc

    Problem 2.JPG

    Thank you in advance
    Attached Images Attached Images
    Last edited by specky_; 01-24-2019 at 09:01 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: How to count unique names on specific date for daily report?

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-23-2019
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    4

    Re: How to count unique names on specific date for daily report?

    Sorry for all the troubles. Here is the sample file attached
    Attached Files Attached Files

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: How to count unique names on specific date for daily report?

    Please try at

    I4 drag down
    =IF(H4>MAX($A$4:$A$13),"Future data",SUMPRODUCT(($A$4:$A$13=H4)/COUNTIFS($A$4:$A$13,$A$4:$A$13,$B$4:$B$13,$B$4:$B$13)))

    Problem 2 is hard, assume that no duplicate flag on the same name, this count the duplicate name on each day

    L4 Press Ctrl+Shift+Enter drag across and down, use custom format # to hide zero

    =SUM(--(FREQUENCY(IF(($A$4:$A$13=$K4),MATCH($A$4:$A$13&$B$4:$B$13,$A$4:$A$13&$B$4:$B$13,)),ROW($A$1:$A$13))=--LEFT(L$3)))
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-23-2019
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    4

    Re: How to count unique names on specific date for daily report?

    Hi Bo_Ry,

    Thank you very much for your help.
    However, I would like to ask for Problem 1, instead of "Future Data", how to make it shows 0 instead?
    For example, like this:

    Problem 1.JPG
    Attached Files Attached Files

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: How to count unique names on specific date for daily report?

    Please try at I4

    =SUMPRODUCT(($A$4:$A$200=H4)/COUNTIFS($A$4:$A$200,$A$4:$A$200&"",$B$4:$B$200,$B$4:$B$200&""))

  7. #7
    Registered User
    Join Date
    01-23-2019
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    4
    Quote Originally Posted by Bo_Ry View Post
    Please try at I4

    =SUMPRODUCT(($A$4:$A$200=H4)/COUNTIFS($A$4:$A$200,$A$4:$A$200&"",$B$4:$B$200,$B$4:$B$200&""))

    It works!
    Thank you very much 😀

+ 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. date formula help needed with blank cell and monthly assumtions formula needed
    By Michael.Howarth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-31-2018, 07:47 AM
  2. List of components needed to build project
    By brad3095 in forum Excel General
    Replies: 4
    Last Post: 05-05-2014, 08:50 AM
  3. how to build the formula??
    By solty89 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-11-2013, 10:39 AM
  4. How build formula over & less
    By redza in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-27-2013, 06:28 PM
  5. Replies: 4
    Last Post: 05-31-2012, 05:13 AM
  6. Help needed to build a day by day simulation
    By one11 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2010, 03:49 AM
  7. [SOLVED] Trying to build a formula
    By faberk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-10-2005, 02: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