+ Reply to Thread
Results 1 to 7 of 7

SumProduct Formula not working

Hybrid View

  1. #1
    Registered User
    Join Date
    02-03-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2003
    Posts
    4

    SumProduct Formula not working

    Hello,

    I'm trying to populate a field if a certain date range has a specific quality, e.g. between Jan 01 and Jan 31, cars sold that are red, provide the already summed total of red cars.

    =SUMPRODUCT((DateRec>=DATE(2009,1,1)*(DateRec<=DATE(2009,1,31)*(P3:S3=AH4)*V4)))

    It doesn't seem to be pulling the data.

    Thanks

  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 Formula not working

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    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
    02-03-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: SumProduct Formula not working

    Thanks for the reply. It's been educational reading through all the post here.

    Please see an attached example of what I'm trying to do. Thanks
    Attached Files Attached Files

  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 Formula not working

    If you remove the Received part from I6:I8 (including the space after Cars), then it makes it easier...

    =SUMPRODUCT((TEXT($B$6:$B$10,"mmm")=J$5)*($C$5:$E$5=$I6),$C$6:$E$10)

    copied down and to the next column....

  5. #5
    Registered User
    Join Date
    02-03-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: SumProduct Formula not working

    Thank you for the help, that worked! In going a step further, I have a spreadsheet similar to the one I've attached. Is there a way to gather the information as shown in the bottom half? I've tried, but with no success.
    This one might be more difficult
    Thanks!
    Attached Files Attached Files

  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 Formula not working

    Try in E21:

    =SUMPRODUCT((TEXT($D$5:$D$11,"mmm")=E$20)*($E$4:$H$10=$D21),($E$5:$H$11))



    Then copied across the matrix.

    Notice the offset in ranges in the 3 conditions...

  7. #7
    Registered User
    Join Date
    02-03-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: SumProduct Formula not working

    Great, I was selecting individual cells, thank you very much!

+ 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