+ Reply to Thread
Results 1 to 2 of 2

sum product checking a range

  1. #1
    Registered User
    Join Date
    01-04-2012
    Location
    Preston, England
    MS-Off Ver
    Excel 2010
    Posts
    49

    sum product checking a range

    =SUMPRODUCT((MONTH($A$7:$A$100)=MONTH(A8))*($E$7:$E$100=E8)*($D$7:$D$100))

    This is my formula as it stands, i want to breaK IT UP SO IT LOOKS AT QUATER OF A YEAR
    My quater are basked around the dates

    1st May- 31st july
    1st aug - 31st oct
    1st nov - 31st jan
    1st feb - 30th april

    i tried the following formula with no success
    =SUMPRODUCT((MONTH($A$7:$A$100)>=MONTH(A8)AND (MONTH($A$7:$A$100)>=MONTH(b8))*($E$7:$E$100=E8)*($D$7:$D$100))


    any suggestions are appriciated

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,819

    Re: sum product checking a range

    You can't use AND with arrays. Try it this way:

    =SUMPRODUCT((MONTH($A$7:$A$100)>=MONTH(A8))*(MONTH($A$7:$A$100)>=MONTH(b8))*($E$7:$E$100=E8)*($D$7:$D$100))

    I'm not sure this will work properly, though, as one of your quarters spans two years, so you might have to incorporate a year function as well.

    Hope this helps.

    Pete

    EDIT: Also, I think your second comparison should be <=MONTH(b8), although you've not really said what A8 and B8 contain
    Last edited by Pete_UK; 11-15-2012 at 05:51 AM.

+ 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