+ Reply to Thread
Results 1 to 9 of 9

COUNTING Text Cells with Duplicates Based on Multi-base criteria

  1. #1
    Registered User
    Join Date
    02-09-2022
    Location
    Virginia
    MS-Off Ver
    2016
    Posts
    7

    COUNTING Text Cells with Duplicates Based on Multi-base criteria

    Hello,

    This seemingly simple formula creation has been driving me nuts. Please help if you can.

    Referencing the attachment, I am trying to create a formula for cell G5 and G6 that counts up the absolute number of calendar days from column C.

    The challenge for me has been that the count has to be broken down by the two different "Systems" named in column B (CLCN 1 and CLNC 2).

    Also, there are duplicate dates for each of the two different systems listed in column B.

    I have tried various combos using functions to include IF, COUNTIF, SUM, AND, MATCH, FREQUENCY, and FILTER, but to no avail.

    Any suggestions? Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,427

    Re: COUNTING Text Cells with Duplicates Based on Multi-base criteria

    Cell F5 array formula , drag down

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


    Cell G5 array formula , drag down

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

  3. #3
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: COUNTING Text Cells with Duplicates Based on Multi-base criteria

    If you don't mind to use helpers cells.

    D5
    =--(COUNTIFS(B$4:B5,B5,C$4:C5,C5)=1)
    copy down

    G5
    =SUMIFS($D$4:$D$23,$B$4:$B$23,F5)
    copy down


    Regards.

  4. #4
    Registered User
    Join Date
    02-09-2022
    Location
    Virginia
    MS-Off Ver
    2016
    Posts
    7

    Re: COUNTING Text Cells with Duplicates Based on Multi-base criteria

    This works nicely. Thank you, very much.

    Tom

  5. #5
    Registered User
    Join Date
    02-09-2022
    Location
    Virginia
    MS-Off Ver
    2016
    Posts
    7

    Re: COUNTING Text Cells with Duplicates Based on Multi-base criteria

    Thanks for the formulas. They work well for the current data set in columns B and C.

    However, if I add new data to the bottom of the columns B and C, how can the formula be adjusted to look for the new data automatically without having to manually enter the new array information? Thanks for the help.

    Tom

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,569

    Re: COUNTING Text Cells with Duplicates Based on Multi-base criteria

    Hello TMains and Welcome to Excel Forum.
    Working with wk9128's formulas:
    1. Convert the range B4:B23 into an Excel table
    2. Modify the array formula for column G to read: =COUNT(0/N(MATCH(F5&$C$5:$C$24,$B$5:$B$24&$C$5:$C$24,)=ROW(Table1[Date])-4))
    Note that the data in B24:C24 was added after the above changes and the formulas automatically adjusted.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    02-09-2022
    Location
    Virginia
    MS-Off Ver
    2016
    Posts
    7

    Re: COUNTING Text Cells with Duplicates Based on Multi-base criteria

    Thanks for the additional help. Your help made it work!

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,569

    Re: COUNTING Text Cells with Duplicates Based on Multi-base criteria

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

  9. #9
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,427

    Re: COUNTING Text Cells with Duplicates Based on Multi-base criteria

    @TMains You're Welcome. Glad to help . Thank You for the feedback and rep.

+ 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 text formula based on multi-criteria excluding duplicates
    By eyeope in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2019, 12:26 PM
  2. [SOLVED] Counting values based on a criteria with duplicates
    By rslush91 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2019, 06:15 PM
  3. [SOLVED] Function to ignore rows based on blanks cells and counting without duplicates
    By lewiesth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2018, 02:02 AM
  4. Replies: 3
    Last Post: 10-01-2015, 11:09 AM
  5. Replies: 13
    Last Post: 04-19-2015, 11:51 PM
  6. [SOLVED] Copy Cells to another Worksheet Based on Multi Criteria
    By cambralenta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-06-2013, 07:42 PM
  7. [SOLVED] Random selecting 20 items base on criteria with no duplicates
    By emina002 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-19-2013, 04:50 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