+ Reply to Thread
Results 1 to 2 of 2

Sumproduct from date range

Hybrid View

  1. #1
    Registered User
    Join Date
    04-21-2010
    Location
    Fife, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    15

    Sumproduct from date range

    Hi All,
    Back for some more guidance from the gurus. I have the formulas below but want to add in 2 date cells from another sheet within the same workbook but when I try I keep getting errors!!


    =SUMPRODUCT(('ACTION PLAN'!E13:E1000="PT")*('ACTION PLAN'!I13:I1000="OPS"))

    I would also need to change the part below that refrences a date as this will be changed by the user in from and to date cells on the other sheet.

    =SUMPRODUCT(--('ACTION PLAN'!E13:E1000="PT"),--('ACTION PLAN'!I13:I1000="OPS"),--('ACTION PLAN'!M13:M1000>"04/01/2009"+0)*ISNUMBER('ACTION PLAN'!M13:M1000))

    Many thanks,
    Last edited by KennyG; 04-29-2010 at 05:55 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: Sumproduct from date range

    Something like:

    =SUMPRODUCT(--('ACTION PLAN'!E13:E1000="PT"),--('ACTION PLAN'!I13:I1000="OPS"),--('ACTION PLAN'!M13:M1000>'Other Sheet'!$X$1),--ISNUMBER('ACTION PLAN'!M13:M1000))
    where 'Other Sheet'!$X$1 is the location of the Start date.... if you want to add a to date:

    =SUMPRODUCT(--('ACTION PLAN'!E13:E1000="PT"),--('ACTION PLAN'!I13:I1000="OPS"),--('ACTION PLAN'!M13:M1000>'Other Sheet'!$X$1),--('ACTION PLAN'!M13:M1000<'Other Sheet'!$Y$1),--ISNUMBER('ACTION PLAN'!M13:M1000))
    where 'Other Sheet'!$Y$1 contains end date.

    Note: the search will not actually include those dates in the cells... if you want to include, then you need to change < to <= and > to >=
    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.

+ 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