+ Reply to Thread
Results 1 to 8 of 8

Countif formula not working...

  1. #1
    Registered User
    Join Date
    12-08-2018
    Location
    Florida
    MS-Off Ver
    MAC
    Posts
    14

    Countif formula not working...

    So I'm attempting to count how many projects are due in a given month using a countif formula. This may not be the best way of doing this and you may be able to let me know a better way, or why this formula is stating "0". I believe it may be because Im using a formula to get the projected due date??? Anyhow, see attached worksheet and thanks in advance...

    James
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,484

    Re: Countif formula not working...

    try something like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    279

    Re: Countif formula not working...

    Your data appears to be held in a different file, COUNTIF will not work referencing data in an external file.

    You can use SUM/IF or SUMPRODUCT to achieve the result you need.

    Please Login or Register  to view this content.
    Note: The SUM/IF needs to be entered with Ctrl+Shift+Enter as it's an array formula, the SUMPRODUCT can just be entered as normal.

  4. #4
    Registered User
    Join Date
    12-08-2018
    Location
    Florida
    MS-Off Ver
    MAC
    Posts
    14

    Re: Countif formula not working...

    This worked! Thank you.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,484

    Re: Countif formula not working...

    You're welcome. Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  6. #6
    Registered User
    Join Date
    12-08-2018
    Location
    Florida
    MS-Off Ver
    MAC
    Posts
    14

    Re: Countif formula not working...

    All of the months worked except for January. It is coming back as a number that isn't possible. my range on the worksheet is 2500 cells in column K. When I shrink the array down to active cells it shrinks the number significantly, but still doesn't make sense. Im guessing that its a formatting error, but have spent probably to much time to not ask for suggestions...

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: Countif formula not working...

    Try

    =SUMPRODUCT((MONTH(Sheet1!$B$2:$B$7)=1)*(Sheet1!$B$2:$B$7<>""))

  8. #8
    Registered User
    Join Date
    12-08-2018
    Location
    Florida
    MS-Off Ver
    MAC
    Posts
    14

    Re: Countif formula not working...

    This fixed it. Thank you for your help.

+ 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] COUNTIF Help - The >= to formula I am using is not working
    By MrMM in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-22-2016, 12:34 PM
  2. Countif formula not working
    By Terressa in forum Excel General
    Replies: 2
    Last Post: 07-01-2015, 06:54 AM
  3. [SOLVED] countif formula not working
    By blue_izce8 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-07-2013, 06:36 AM
  4. Countif Formula Stopped Working
    By jerry.granger in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-04-2013, 11:00 AM
  5. CountIF formula not working?
    By snrpatel10 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-25-2012, 09:29 PM
  6. [SOLVED] COUNTIF formula not working
    By ddub25 in forum Excel General
    Replies: 3
    Last Post: 06-17-2012, 06:35 PM
  7. SUMPRODUCT formula with COUNTIF not working
    By Trueman_86 in forum Excel General
    Replies: 2
    Last Post: 07-15-2010, 06:58 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