+ Reply to Thread
Results 1 to 13 of 13

Count duplicate values if they appear in the same month

  1. #1
    Registered User
    Join Date
    04-18-2021
    Location
    Fareham, England
    MS-Off Ver
    365
    Posts
    7

    Count duplicate values if they appear in the same month

    Hi,

    I have a spreadsheet of monthly subscriptions by customer. I am trying to identify how many customers hold multiple subscriptions for the product. I order to do this I need to count the number of times a customers email address appears in a month and if it is >1 then I would like it to return the number of duplicates.

    For example:

    Column A Column D
    Email Address v 25/02/2021
    Email Address w 02/01/2021
    Email Address x 12/02/2021
    Email Address y 18/02/2021
    Email Address y 24/02/2021
    Email Address z 10/01/2021
    Email address z 10/02/2021

    I would like the number 2 returned in Column J as this is the only multiple subscription in the list. The same email address appears twice in one month.

    I've been going round in circles, getting close but can't quite nail it! Any help would be appreciated, thanks.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,191

    Re: Count duplicate values if they appear in the same month

    Please read the yellow banner at the top of this page on how to attach a file.

  3. #3
    Registered User
    Join Date
    04-18-2021
    Location
    Fareham, England
    MS-Off Ver
    365
    Posts
    7

    Re: Count duplicate values if they appear in the same month

    Example spreadsheet attached - Column J has the required response.

    Thanks

    Annie
    Attached Files Attached Files
    Last edited by AnnieMM; 04-18-2021 at 11:56 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Count duplicate values if they appear in the same month

    Should something also be done with the year 20201?
    Messages have been translated from Dutch to English by means of google translate.

  5. #5
    Registered User
    Join Date
    04-18-2021
    Location
    Fareham, England
    MS-Off Ver
    365
    Posts
    7

    Re: Count duplicate values if they appear in the same month

    No, I've corrected the example spreadsheet, just my poor typing!

  6. #6
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Count duplicate values if they appear in the same month

    To start somewhere. You can expand yourself with conditions.

    In J6 and drop down.
    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,191

    Re: Count duplicate values if they appear in the same month

    Tow helper columns

    in j6

    =IF(A6=A5,J5,J5+1)

    in K6

    =TEXT(D6,"mmYYYY")&J6

    in I6

    =IF(COUNTIF($K$6:$K$1000,K6)>1,IF(COUNTIF($K$6:K6,K6)=COUNTIF($K$6:$K$1000,K6),COUNTIF($K$6:$K$1000,K6),""),""))
    Attached Files Attached Files

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Count duplicate values if they appear in the same month

    Tidying up V en a's contribution:

    =LET(a,TEXT(D6,"mmyy"),b,SUMPRODUCT(($A$6:$A$16=A6)*(TEXT($D$6:$D$16,"mmyy")=a)),IF(AND(b>1,b=SUMPRODUCT(($A$6:A6=A6)*(TEXT($D$6:D6,"mmyy")=a))),b,""))

    This will also work idf the range covers more than 12 months of data.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  9. #9
    Registered User
    Join Date
    04-18-2021
    Location
    Fareham, England
    MS-Off Ver
    365
    Posts
    7

    Re: Count duplicate values if they appear in the same month

    Thank you, I will give these a go and let you know how I get on!

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Count duplicate values if they appear in the same month

    Try in J6:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Quang PT

  11. #11
    Registered User
    Join Date
    04-18-2021
    Location
    Fareham, England
    MS-Off Ver
    365
    Posts
    7

    Re: Count duplicate values if they appear in the same month

    Thank you these all worked, I really appreciate the responses!

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Count duplicate values if they appear in the same month

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

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

  13. #13
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Count duplicate values if they appear in the same month

    @Glenn Kennedy, Reputation seems to be pretty important to some? Where can these be found in my account, or your account?

+ 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. [SOLVED] Count Same Or Duplicate Values Only Once
    By andyzz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-11-2017, 10:00 PM
  2. [SOLVED] Count duplicate text values in columns whilst ignoring/excluding certain values
    By adamwestwell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-02-2017, 05:34 AM
  3. Replies: 5
    Last Post: 06-28-2015, 08:28 PM
  4. [SOLVED] Find count of Unique or Duplicate Values based on Concatenated values in 2 columns
    By bdicarlo1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2014, 12:42 AM
  5. [SOLVED] Count then Delete Duplicate Values and put count next to now unique value
    By flipjarg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2014, 04:22 PM
  6. Replies: 1
    Last Post: 03-03-2014, 11:06 AM
  7. count of duplicate on month basis
    By excel5111987 in forum Excel General
    Replies: 1
    Last Post: 09-02-2011, 07:21 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