+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : SUMPRODUCT total

  1. #1
    Registered User
    Join Date
    11-10-2009
    Location
    Watkins Glen, NY
    MS-Off Ver
    Excel 2007/2003
    Posts
    48

    SUMPRODUCT total

    How can I modify this counting function to total the values in Column B if they meet the date/amount criteria? I thought adding ,B:B) would do it, but it errors.

    =SUMPRODUCT(--(A:A>=DATE(2005,10,1)),--(A:A<=DATE(2006, 9,30)),--(B:B>=1),--(B:B<=19.99))

    Thanks!
    Bryce
    Last edited by bkatzman; 04-29-2010 at 11:40 AM.

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

    Re: SUMPRODUCT total

    This errors?

    =SUMPRODUCT(--(A:A>=DATE(2005,10,1)),--(A:A<=DATE(2006, 9,30)),--(B:B>=1),--(B:B<=19.99),B:B)

    what error do you get?

    although using whole range references with Sumproduct is quite resource intensive... try to limit the range or use SUMIFS


    =SUMIFS(B:B,A:A,">="&DATE(2005,10,1),A:A,"<="&DATE(2006, 9,30),B:B,">=1",B:B,"<=19.99")
    Last edited by NBVC; 04-29-2010 at 11:20 AM.
    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-10-2009
    Location
    Watkins Glen, NY
    MS-Off Ver
    Excel 2007/2003
    Posts
    48

    Re: SUMPRODUCT total

    For some reason when I copied any pasted =SUMPRODUCT(--(A:A>=DATE(2005,10,1)),--(A:A<=DATE(2006, 9,30)),--(B:B>=1),--(B:B<=19.99),B:B) it worked!?!?

    Thanks. Can you tell me how to pull data for this function from another tab "Donor Data". I know you showed me how to do this for other functions, but I am getting a NAME error when I simply add Donor Data! in front of all of the above column references.

    Thanks again!

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

    Re: SUMPRODUCT total

    =SUMPRODUCT(--('Donor Data'!A:A>=DATE(2005,10,1)),--('Donor Data'!A:A<=DATE(2006, 9,30)),--('Donor Data'!B:B>=1),--('Donor Data'!B:B<=19.99),'Donor Data'!B:B)

    you need to enclose in single quotes.. because of the space between the words.

    Again, you should reconcider using SUMIFS instead or use a shorter defined absolute range.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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