+ Reply to Thread
Results 1 to 6 of 6

Complex countifs

  1. #1
    Forum Contributor
    Join Date
    07-29-2009
    Location
    Melbourne, Australia
    MS-Off Ver
    365
    Posts
    255

    Complex countifs

    I have attached a worksheet and want to countif given a certain day and also if a data point has a particular character in a string
    Attached Files Attached Files
    Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Complex countifs

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

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Complex countifs

    Not too complex if you use SUMPRODUCT - try this in cell G3:

    =SUMPRODUCT(($A$2:$A$11=$F3)*(LEN($B$2:$B$11)-LEN(SUBSTITUTE($B$2:$B$11,G$2,""))))

    then copy across and down to suit. I can only see two 3's in Mon values.

    Hope this helps.

    Pete

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Complex countifs

    Hi Dave,

    you will only find one occurrence of the same digit in any one value - change the value in B3 to 333, or in B6 to 2133 to see what I mean.

    Pete

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Complex countifs

    Pete,

    Yup. Good catch.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Complex countifs

    @pickslides

    Thanks for the rep. If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

+ 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. Help need with complex COUNTIFS
    By ZEROCOOL UK in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-29-2018, 04:50 AM
  2. Replies: 6
    Last Post: 10-11-2017, 04:57 PM
  3. complex criteria - sumproduct or countifs
    By bluphoto in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 10-31-2014, 01:35 PM
  4. Counting customer by sales stage & type - complex countifs(...)
    By Tommyy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-13-2014, 12:41 PM
  5. [SOLVED] Complex if Formulas AVERAGEIFS, SUMIFS, COUNTIFS
    By fredlo2010 in forum Excel General
    Replies: 5
    Last Post: 06-19-2014, 03:26 PM
  6. Complex COUNTIFS
    By ntanswell in forum Excel General
    Replies: 3
    Last Post: 01-09-2014, 12:30 PM
  7. [SOLVED] countif/sumif with more criterias - too complex for countifs/sumifs
    By Mengo85 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-03-2013, 07:18 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