+ Reply to Thread
Results 1 to 8 of 8

Sumproduct Question

  1. #1
    Registered User
    Join Date
    02-11-2009
    Location
    jackson, tn
    MS-Off Ver
    Excel 2003
    Posts
    18

    Sumproduct Question

    =((SUMPRODUCT((('Data Sheet'!$A$2:$A$997<2110000)+('Data Sheet'!$A$2:$A$997>2119999)),--(ISNUMBER(MATCH('Data Sheet'!$B$2:$B$997,{300100,302100},0))),('Data Sheet'!E$2:E$997*IF('Data Sheet'!E1<=$F$4:$G$4,1,0))


    The last part of the formula is the problem, the first two arrays are conditions and the last array is a sum if f4 a period of the year is equal or less to the data sheet tab it is summing.The formula below works fine, but when the last condition is added it doesn't work. Any help is appreciated.

    =((SUMPRODUCT((('Data Sheet'!$A$2:$A$997<2110000)+('Data Sheet'!$A$2:$A$997>2119999)),--(ISNUMBER(MATCH('Data Sheet'!$B$2:$B$997,{300100,302100},0))),'Data Sheet'!E$2:E$997)
    Last edited by eprice; 03-09-2009 at 01:55 PM.

  2. #2
    Registered User
    Join Date
    02-11-2009
    Location
    jackson, tn
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Sumproduct Question

    I tried the formula variation as the below formula with no results. The condition I am trying to implement is where F4=Current Period As Number, so 2 for February. Then the condition must be less than or equal to the Period established to be summed.Any help is appreciated.

    SUMPRODUCT((('Data Sheet'!$A$2:$A$997<2110000)+('Data Sheet'!$A$2:$A$997>2119999)),--(ISNUMBER(MATCH('Data Sheet'!$B$2:$B$997,{300100,302100},0))),--('Data Sheet'!E1<=$F$4),'Data Sheet'!E$2:E$997)

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

    Re: Sumproduct Question

    Maybe you should post a sample workbook showing your needs. It is difficult to picture your situation.
    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.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Sumproduct Question

    You need to rethink the approach given you're trying to multiply dimensions of differing sizes... if you revert to * method you can avoid need for CSE altogether, eg:

    =SUMPRODUCT((('DATA SHEET'!$A$2:$A$997<2110000)+('DATA SHEET'!$A$2:$A$997>2119999))*(ISNUMBER(MATCH('DATA SHEET'!$B$2:$B$997,{300100,302100},0)))*('DATA SHEET'!E$2:E$997)*('DATA SHEET'!E1<=$F$4))
    (ie confirm with ENTER as normal)

    Using Double Unary approach then Array is required...eg:

    =SUMPRODUCT((('DATA SHEET'!$A$2:$A$997<2110000)+('DATA SHEET'!$A$2:$A$997>2119999)),--(ISNUMBER(MATCH('DATA SHEET'!$B$2:$B$997,{300100,302100},0))),'DATA SHEET'!E$2:E$997*('DATA SHEET'!E1<=$F$4))
    Confirmed with CTRL + SHIFT + ENTER
    Last edited by DonkeyOte; 03-05-2009 at 05:48 AM. Reason: typo

  5. #5
    Registered User
    Join Date
    02-11-2009
    Location
    jackson, tn
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Sumproduct Question

    Here is a sample excel any help would be appreciated


    sampleexcel.xls

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

    Re: Sumproduct Question

    Try this in C12:

    Please Login or Register  to view this content.
    copied across.

    This sums only if what is row 1 of Data Sheet is less than or equal to what is in F4 of your Example sheet.

  7. #7
    Registered User
    Join Date
    02-11-2009
    Location
    jackson, tn
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Sumproduct Question

    problem sovled thank you very much to everyone

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

    Re: Sumproduct Question

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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