+ Reply to Thread
Results 1 to 4 of 4

CountIf/CountIFS/Sumproduct Not Displaying desired results.

  1. #1
    Registered User
    Join Date
    07-03-2019
    Location
    Orlando, Florida
    MS-Off Ver
    2013
    Posts
    19

    CountIf/CountIFS/Sumproduct Not Displaying desired results.

    I need to know the number of occurrences in a period of time in a certain interval (not sure yet but just need the base formula to work so I can adjust as needed). Every formula I have tried will only result in a 0 even though there are occurrences within the time period. These are the formulas that I have used:

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


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


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


    I am not sure why they are all returning 0's. The actual file has 713 cells to pull from.

    Any help is appreciated.

    Thanks,
    Attached Files Attached Files
    Last edited by shawnsdad; 10-26-2019 at 10:08 PM.

  2. #2
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: CountIf/CountIFS/Sumproduct Not Displaying desired results.

    The values in column B are text. Also true of the values in column G.

    Select the values in column B, click Data > Text To Columns > Finish. Repeat for column G.

    FYI, since Excel time cannot be negative, it is sufficient to test COUNTIF(D1:D12, "<=0:30") or COUNTIF($D$1:$D$12, "<=" & I3).

    But if you want to count the times in D1:D12 that are between two intervals in column I, enter (the following into J4 and copy down the column:

    =COUNTIFS($D$1:$D$12, ">" & I3, $D$1:$D$D12, "<=" & I4)

  3. #3
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,231

    Re: CountIf/CountIFS/Sumproduct Not Displaying desired results.

    I'm not an expert in "time" in Excel, but maybe it has to do with how the time in column D is entered. When I selected that column, I selected the format of time (in format of 13:30) and then I RE-ENTERED the same values, you formulas worked (actually, your countifs formula is pointing to Col B, not Col D, but if you change it to Col D, then it also works.)

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,446

    Re: CountIf/CountIFS/Sumproduct Not Displaying desired results.

    .
    This works for J3 :
    Please Login or Register  to view this content.

+ 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] Decimal not displaying as desired
    By JOB Dave in forum Excel General
    Replies: 3
    Last Post: 12-17-2017, 06:07 PM
  2. [SOLVED] Sumproduct to replace countifs as countifs don't work on external source reference
    By KrishnaSagar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-02-2017, 02:33 AM
  3. [SOLVED] Using COUNTIF or COUNTIFS rather than SUMPRODUCT
    By zanshin777 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-02-2016, 09:42 AM
  4. [SOLVED] need help displaying desired rows based on Yes and No question for multiple categories
    By DixieDoll11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-07-2014, 01:48 PM
  5. CountiF or CountiFs two columns conditions or SUMPRODUCT
    By Oceans in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 05-01-2014, 03:02 PM
  6. [SOLVED] COUNTIF vs COUNTIFS vs SUMPRODUCT
    By FASTiger in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-28-2013, 01:44 AM
  7. comparing cells and displaying the desired value
    By phil@micro in forum Excel General
    Replies: 2
    Last Post: 01-23-2009, 05:32 AM

Tags for this Thread

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