+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Count blank cells in one column that also meet a date condition in another column

  1. #1
    Registered User
    Join Date
    08-05-2009
    Location
    fla, usa
    MS-Off Ver
    Excel 2007
    Posts
    5

    Count blank cells in one column that also meet a date condition in another column

    Hi,

    Please help me as soon as possible. I need to count the blank cells in one column (the Date received column) that also meet a date condition in another column (the Transfer Date column). I also need to add up all the account balances (in the Account Balances column) for the accounts that were just counted.

    I attached an illustrative workbook. the first tab has the raw information. The two pieces of analytical information sought are on the second tab. First, I need to identify and count the accounts that were received more than 120 days ago and for which there is not tranfer date entered. Then for those identified and counted accounts, I need a summary of the corresponding balances.

    I just can't figure this out. I've tried conditional formatting, countif, IF combined with COUNT, and more. I get it working for partial steps, but not enough to complete the task.

    I would greatly appreciate some help here, asap. Thanks. God Bless.
    Attached Files Attached Files
    Last edited by tylat; 08-05-2009 at 02:59 PM.

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

    Re: Count blank cells in one column that also meet a date condition in another column

    Try, respectively:

    =SUMPRODUCT(--(Sheet1!$C$2:$C$12=""),--(Sheet1!$A$2:$A$12<TODAY()-120))

    and

    =SUMPRODUCT(--(Sheet1!$C$2:$C$12=""),--(Sheet1!$A$2:$A$12<TODAY()-120),Sheet1!B2:B12)
    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
    08-05-2009
    Location
    fla, usa
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Count blank cells in one column that also meet a date condition in another column

    Thanks for the quick reply NBVC.

    The formulas work, except for one problem: where a date received cell is blank, and the transfer date is blank, the formulas count and sum the respective cells. How can that be avoided? I attached book with simpler account balances, and I highlighted the problem row - row 11.
    Attached Files Attached Files

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

    Re: Count blank cells in one column that also meet a date condition in another column

    Try then:

    =SUMPRODUCT(--(Sheet1!$C$2:$C$12=""),--(Sheet1!$A$2:$A$12<>""),--(Sheet1!$A$2:$A$12<TODAY()-120))

    and

    =SUMPRODUCT(--(Sheet1!$C$2:$C$12=""),--(Sheet1!$A$2:$A$12<>""),--(Sheet1!$A$2:$A$12<TODAY()-120),Sheet1!B2:B12)

  5. #5
    Registered User
    Join Date
    08-05-2009
    Location
    fla, usa
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Count blank cells in one column that also meet a date condition in another column

    It worked, you solved my problem! Thanks a lot; I wish that I had asked 2 days ago.

    Can you explain how the formulas work, especially the dashes (--) in them, or recommend a link that explains, so that I can know how to tailor this to different situations?

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

    Re: Count blank cells in one column that also meet a date condition in another column

    There was a good like at Xldynamic.com.. but it appears to no longer be available...

    ... basically the dashes coerce the resulting array of TRUE/FALSEs for each condition to 1's and 0's so that Sumproduct can do the math as designed...

    Go to the Formulas menu and click Evaluate Formula.. then you can keep clicking Evaluate to see how the function works.

+ 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