+ Reply to Thread
Results 1 to 6 of 6

Countifs not responding to particular values

Hybrid View

iblameluck78 Countifs not responding to... 05-02-2013, 05:50 PM
ConneXionLost Re: Countifs not responding... 05-02-2013, 06:11 PM
iblameluck78 Re: Countifs not responding... 05-02-2013, 06:19 PM
ConneXionLost Re: Countifs not responding... 05-02-2013, 06:24 PM
iblameluck78 Re: Countifs not responding... 05-02-2013, 06:32 PM
FDibbins Re: Countifs not responding... 05-02-2013, 07:27 PM
  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    10

    Countifs not responding to particular values

    I have a countifs formula that won't work for a few specific values. I have a table listing the day and time of appointments that have taken place, and I want to get a count that matches the days and times (ex: how many appointments took place at 4:00pm on Thursdays, etc.). The good news is that it seems to work for most of the days/times. The bad news is that there are a few buggers who just won't cooperate with me (Ex: 2:30 pm; 4:00 pm; 5:30 pm (there might be more, but I'm not sure)). Does anyone have an idea of why this isn't working for such specific times? I think* that everything is formatted appropriately, and it works for 90% of the entries.

    I've attached the file for reference. The table in question is labeled "COUNT" on Sheet1.

    *I'm often wrong.
    Attached Files Attached Files

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Countifs not responding to particular values

    Excel does not appear to be recognizing all the appointment times in Sheet1!D3:D23, but as soon as I clicked in one of the uncooperative cells (started edit mode), then hit Enter, the formula worked.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    10-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Countifs not responding to particular values

    Well that makes me feel silly. Do you know why this might have happened?

    And THANK YOU!

  4. #4
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Countifs not responding to particular values

    This usually occurs due to formatting; either in the cell before the data was added, or the format of the cell where the data was copied. It is a nuisance sometimes recognized as a "feature".

  5. #5
    Registered User
    Join Date
    10-10-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Countifs not responding to particular values

    Is it too late to order the stock model?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Countifs not responding to particular values

    If you look at the actual value behond the 2:30:00 PM on sheet1 it is actually...
    0.604166666666667
    while the actual value behind 2:30:00 on sheet 2 is...
    0.604166666666666

    If you add a helper column in sheet1 and =ROUNDDOWN(cell_ref,6)...or even 4..., then use this, copied down and across in sheet2...
    =COUNTIFS(Appts.!$B$2:$B$1460,E$2,Appts.!$D$2:$D$1460,ROUNDDOWN($D3,6))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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