Results 1 to 5 of 5

Countif - Selecting a date range only counts blank cells and not populated cells

Threaded View

  1. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Countif - Selecting a date range only counts blank cells and not populated cells

    How about this:

    =SUMPRODUCT(--(OFFSET(Absence!$B$2:$B$62,0,MATCH($B10,Absence!$B$1:$E$1,0)-1)="H"),--(Absence!$A$2:$A$62>=$C$3),--(Absence!$A$2:$A$62<=$D$3))

    Edited to add: That's looking for "H", not "S", because none of the cells in your example were set to "S", but it will count "S" cells just as well with a minor change (marked in bold)
    Last edited by Andrew-R; 01-31-2012 at 12:59 PM.

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