+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Counting a Date Range + blank cells

  1. #1
    Registered User
    Join Date
    11-01-2010
    Location
    San Diego
    MS-Off Ver
    Excel 2007
    Posts
    38

    Counting a Date Range + blank cells

    Hi again,

    Not sure if there is a way to do this..
    I need to count a certain date range that has another column with blank cells..

    Column A = Date Range / Column B = Cells that need to be counted if Blank.

    So it looks like this and for this example I will be counting October...

    Column A Column B

    10/25/2010 DATA
    10/26/2010
    9/10/2010 DATA
    10/15/2010 DATA
    10/4/2010

    ---------

    So obviously the Result I need is 2.

    Thanks ahead of time!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Counting a Date Range + blank cells

    Try:

    =SUMPRODUCT(--(MONTH($A$2:$A$6)=10),--($B$2:$B$6=""))

    or if year is also important...

    =SUMPRODUCT(--(TEXT($A$2:$A$6,"mmm-yy")="Oct-10"),--($B$2:$B$6=""))

    adjust ranges to suit your data.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-01-2010
    Location
    San Diego
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Counting a Date Range + blank cells

    Awesome!! This works perfect...

    One last thing --

    If I wanted to use this formula on a "summary" type page.. and I needed to reference a different worksheet (lets call this WorksheetA) would the formula look something like...

    =SUMPRODUCT(--('WorksheetA'!TEXT($A$9:$A$13,"mmm-yy")="Oct-10"),--('WorksheetA'!$Q$9:$Q$13=""))

    Its not really working for me, so what am I missing?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Counting a Date Range + blank cells

    The sheet name always immediately prefixes the range, not the function....

    =SUMPRODUCT(--(TEXT('WorksheetA'!$A$9:$A$13,"mmm-yy")="Oct-10"),--('WorksheetA'!$Q$9:$Q$13=""))

+ 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