+ Reply to Thread
Results 1 to 4 of 4

Can Sumproduct check for dates greater than?

  1. #1
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Can Sumproduct check for dates greater than?

    This is what I have:

    SUMPRODUCT(--(D50>='Commercial Loans'!X3:X1999),--('Commercial Loans'!J3:J1999="Iris"),'Commercial Loans'!G3:G1999)

    This formula is suppose to add everything in cell G3:G1999(commercial loans tab) if anything on cells X3:X1999(commercial loans tab) is less than or equal to cell D50(summary tab) that contain “Iris” on cells J3:J1999(commercial loans tab).

    Its not working the way I’d like… & I don’t know why.

    SUMPRODUCT(--(D50>='Commercial Loans'!X3:X1999),--(D50<'Commercial Loans'!I3:I1999),--(ISNUMBER(SEARCH("Iris",'Commercial Loans'!J3:J1999))),'Commercial Loans'!G3:G1999)

    This one is suppose to add everything in cell G3:G1999(commercial loans tab) if anything on cells X3:X1999(commercial loans tab) is less than or equal to cell D50(summary tab) & if cells I3:I1999 are greater than D50(Summary tab) & of course that contain “Iris” in cells J3J1999(commercial tab)

    Again not working properly… is it possible that instead of checking cells I3:1999 for dates that I check AK3:AK1999 to see if their blank??? If their blank then add if not then don’t….
    Last edited by jgomez; 07-15-2011 at 12:51 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: Can Sumproduct check for dates greater than?

    If column I contains dates and blanks, you could get a miscount... try:


    SUMPRODUCT(--(D50>='Commercial Loans'!X3:X1999),--('Commercial Loans'!I3:I1999>0),--(D50<'Commercial Loans'!I3:I1999),--(ISNUMBER(SEARCH("Iris",'Commercial Loans'!J3:J1999))),'Commercial Loans'!G3:G1999)
    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
    Valued Forum Contributor
    Join Date
    12-22-2010
    Location
    Texas
    MS-Off Ver
    Excel 2003 & Excel/Access 2007
    Posts
    438

    Re: Can Sumproduct check for dates greater than?

    works... Mind explaining this part:

    ('Commercial Loans'!I3:I1999>0)

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

    Re: Can Sumproduct check for dates greater than?

    When Excel looks at cells to determine greater than or equal to a set criteria, it sees blanks as 0 and therefore they would count if you are looking for less than a set criteria.. so you have to exclude those blanks with that additional condition.

+ 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