+ Reply to Thread
Results 1 to 4 of 4

Count with duplicate and without duplicate

Hybrid View

  1. #1
    Registered User
    Join Date
    06-06-2014
    Location
    Nepal
    MS-Off Ver
    MS office professional 2016
    Posts
    90

    Count with duplicate and without duplicate

    Here i want to count data with and without duplicate as mention in attached file


    Note : I need to run attached file at google sheets.
    Attached Files Attached Files

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

    Re: Count with duplicate and without duplicate

    C3:C5
    =SUM(--(FREQUENCY(IF(raw!$A$7:$A$20=A3,MATCH(raw!$A$7:$A$20&raw!$D$7:$D$20,raw!$A$7:$A$20&raw!$D$7:$D$20,)),ROW(raw!$A$7:$A$20)-ROW(raw!$A$6))>0))

    C9
    =SUM(--(FREQUENCY(IF(raw!$A$7:$A$20>0,MATCH(raw!$A$7:$A$20&raw!$D$7:$D$20,raw!$A$7:$A$20&raw!$D$7:$D$20,)),ROW(raw!$A$7:$A$20)-ROW(raw!$A$6))>0))

    C10
    =COUNTA(raw!$A$7:$A$20)
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,142

    Re: Count with duplicate and without duplicate

    where is the "Count without Dublicate data" supposed to be sourced from?
    based on the example provided, there is no data that would meet this condition and be count of "4"

    where is the "Count with Dublicate date" supposed to be sourced from?
    based on the example provided, there is no data that would meet this condition and be count of "5"

  4. #4
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,142

    Re: Count with duplicate and without duplicate

    after analysing the array formulas provided by Bo_Ry, it appears that you may be seeking counts of unique rows.

    here is a regular formula (enter into D3, and drag down) to obtain unique rows per name:
    =SUMPRODUCT((raw!$A$7:$A$20=A3)/COUNTIFS(raw!$A$7:$A$20,raw!$A$7:$A$20&"",raw!$D$7:$D$20,raw!$D$7:$D$20&""))
    here is a regular formula (enter into D9) to obtain a count of total unique rows:

    =SUMPRODUCT((raw!$A$7:$A$20<>"")/COUNTIFS(raw!$A$7:$A$20,raw!$A$7:$A$20&"",raw!$D$7:$D$20,raw!$D$7:$D$20&""))

    sample file is attached
    Attached Files Attached Files
    Last edited by janmorris; 09-13-2021 at 01:36 AM.

+ 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. Replies: 2
    Last Post: 03-03-2018, 05:00 AM
  2. [SOLVED] Copy a row, check table for duplicate, give option to overwrite duplicate before pasting
    By Frankie_The_Flyer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-11-2017, 09:56 PM
  3. Replies: 1
    Last Post: 05-19-2017, 07:37 AM
  4. Replies: 4
    Last Post: 08-21-2015, 03:59 PM
  5. Replies: 1
    Last Post: 03-03-2014, 11:06 AM
  6. Replies: 4
    Last Post: 09-18-2012, 09:06 AM
  7. Search column a for duplicate data and copy entire row to duplicate sheet
    By crazyAMP in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2012, 08:21 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