+ Reply to Thread
Results 1 to 11 of 11

Count duplicate occurrences based on another column within date range

  1. #1
    Registered User
    Join Date
    06-06-2019
    Location
    Portland,Or
    MS-Off Ver
    365
    Posts
    5

    Count duplicate occurrences based on another column within date range

    I am stuck at adding a date range criteria for the following. Lets say >=5/1/19, <6/1/19 where I can count only those where the shipped status within the date range. It does not matter when the "Finishing" status happened.
    I'm trying to wind up with a count of 3. Where the same co # has finishing and shipped status and the status for those 3 is within the date range.

    =SUMPRODUCT((MMULT(COUNTIFS(D4:D17,D4:D17,E4:E17,{"Finishing","Shipped"}),{1;1})=2)/COUNTIF(D4:D17,D4:D17))

    C D E

    Date CO Status
    1/1/19
    1/2/19 125 Finishing
    2/1/19 126 Finishing
    2/2/19 127 Finishing
    3/1/19 128 Finishing
    3/2/19 128 Shipped
    5/1/19 125 Shipped
    5/13/19 126 Shipped
    5/20/19 127 Shipped

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Count duplicate occurrences based on another column within date range

    Isn't it as simple as:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It does at least yield 3 as the answer.

    Let me know if I have misunderstood.
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  3. #3
    Registered User
    Join Date
    06-06-2019
    Location
    Portland,Or
    MS-Off Ver
    365
    Posts
    5

    Re: Count duplicate occurrences based on another column within date range

    Thanks Geoff, the CO number has to have a Finishing status and a Shipped status listed and the shipped status has to fall within the date range. In the example I'm looking at co 125, 126 and 127 fall within the parameters. Our system does not differentiate between new and refurb units that have shipped. I need to count the ones that have been reworked "Finishing" and shipped to compare to the total shipped for each month.
    Attached Files Attached Files
    Last edited by chipper49; 06-06-2019 at 03:18 PM. Reason: Attached sample spreadsheet

  4. #4
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Count duplicate occurrences based on another column within date range

    OK - I think your post #1 formula was the hard part!
    Here's a combination of that formula with my post #2 formula that does what I think you want. It produces "3" for your sample data and seems to respond correctly to the best of my understanding to variants of your sample data.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Let me know what you think.

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count duplicate occurrences based on another column within date range

    Hi,

    Why have you started a new thread?

    https://www.excelforum.com/excel-gen...er-column.html

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count duplicate occurrences based on another column within date range

    Ignore that. Just seen Admin's post in that thread.

    Regards

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Count duplicate occurrences based on another column within date range

    @Xor
    Have a look at my post in this link
    OP hi jacked then created a new thread. This one can be continued

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Count duplicate occurrences based on another column within date range

    Thanks, Pepe.

    3 posts - very confusing!

    Cheers

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Count duplicate occurrences based on another column within date range

    Thanks, and yes
    it took me a while to see what went wrong...

    (the pleasures of moderation )

  10. #10
    Registered User
    Join Date
    06-06-2019
    Location
    Portland,Or
    MS-Off Ver
    365
    Posts
    5

    Re: Count duplicate occurrences based on another column within date range

    My apologies for the second thread and thank you for the solution. Just an old guy trying to learn this to pay the bills.

  11. #11
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Count duplicate occurrences based on another column within date range

    Glad you got your solution in the end!

    If you're all set can an you please mark the thread as solved. To do this select Thread Tools from the menu link above your first post 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. Replies: 5
    Last Post: 05-30-2019, 06:18 AM
  2. Replies: 7
    Last Post: 04-01-2016, 03:27 PM
  3. [SOLVED] Count duplicate occurrences based on another column
    By SHUTTEHFACE in forum Excel General
    Replies: 20
    Last Post: 03-31-2015, 11:59 AM
  4. Count occurrences of value in a date range I can specify easily each time
    By mikalaka in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-14-2014, 07:14 PM
  5. [SOLVED] Count Occurrences Date Range Falls Within Month
    By Rbooth in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-25-2014, 06:47 PM
  6. Count occurrences based on criteria in another column
    By nwapple in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2013, 09:53 PM
  7. Replies: 5
    Last Post: 09-18-2011, 10:44 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