+ Reply to Thread
Results 1 to 5 of 5

Filter inside Countif?

  1. #1
    Registered User
    Join Date
    02-25-2012
    Location
    Norway
    MS-Off Ver
    MS365 v.2202
    Posts
    37

    Filter inside Countif?

    Hello!

    I have a spreadsheet with a GANTT-look-a-like sheet. (mock-version attached).

    I can use COUNTIF and get all non-empty cells or cells that contains something. BUT that isn't dynamic, FILTER can do the dynamic part. Like specific dates.
    But I can't use COUNTIF(FILTER)? And get the amount of results?

    I found something about sumproducts but cant get that to work. Any help?

    (The yellow part is where I need help, can probably do the rest if I get that part right)
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,886

    Re: Filter inside Countif?

    Administrative Note:

    Is you forum profile showing the version of Excel that you need this to work for? There is no FILTER in Excel 2016 ...

    Members will tailor the solutions they offer to the version of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent versions of Excel are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the release number in your profile (e.g. MS365 Version 2211). This is in the About Excel section further down the Account page.

    Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-25-2012
    Location
    Norway
    MS-Off Ver
    MS365 v.2202
    Posts
    37

    Re: Filter inside Countif?

    Now I have updated my profile, I use ms365 v2202 with Filter formula included 🙂

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Filter inside Countif?

    The WEEKNUM function will return the week number given a certain date.
    You can use the TODAY function as that date to give you the current week number.
    Modify the last argument of the WEEKNUM function as needed depending on what day your weeks start on.

    Try this in E4
    =COUNTIFS(J$1:BI$1,">="&WEEKNUM(TODAY()),J4:BI4,"<>")

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Filter inside Countif?

    Better yet, I just noticed that you have actual dates in row 2.

    Just use this:
    =COUNTIFS(J$2:BI$2,">="&TODAY(),J4:BI4,"<>")

+ 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. UNIQUE and FILTER inside COUNTIF(S) Function
    By dluhut in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-02-2022, 02:38 PM
  2. COUNTIFS Formula not working, please assist
    By ExcelNoobNoob in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-29-2021, 09:32 AM
  3. [SOLVED] Countif finds 1's inside a mixed cell
    By FivestarMac in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-11-2020, 07:34 PM
  4. [SOLVED] Countif inside cell after vlookup
    By Sekars in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-06-2017, 03:01 AM
  5. CountIF inside of different worksheet with a filter
    By Tom005 in forum Excel General
    Replies: 13
    Last Post: 06-06-2014, 08:07 AM
  6. [SOLVED] Countif problem (with formule inside)
    By keis386 in forum Excel General
    Replies: 17
    Last Post: 07-22-2012, 04:04 AM
  7. Problems with using a formula inside a countif function
    By flex in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-11-2008, 04:14 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