+ Reply to Thread
Results 1 to 4 of 4

Sumproduct basics

  1. #1
    Registered User
    Join Date
    05-19-2010
    Location
    Brazil
    MS-Off Ver
    Excel 2007
    Posts
    6

    Unhappy Sumproduct basics

    I am sorry to post again in another thread, I'm still getting used to the forum!

    I had a question about SUMIF, SUMIFS and SUMPRODUCT.
    Well, I could manage to work with SUMIFS, but now I have an urgent need to adapt it to OO, so I need SUMPRODUCT.

    I attached an Example of my DataSheet. It has SALES and the BREAKDOWN, where I basically put together a daily report!

    As you can see, on the BREAKDOWN Sheet I want to SUMIF the values of the SALES, but under the FORM OF PAYMENT criteria. I can do it easily with SUIMIF, but when I go to the next day e.g. 10/10/10 I have to use SUMIF again and manually declare the range of rows I want to include in the formula, and that really sux! I want to say WHEN ANY cells from the Column A from SALES matches the value of A2 (05/05/05 in the example), then SUMIF(RANGE 1;"CREDIT";RANGE 2), the regular SUMIF! This first condition is killing me! Can anyone help?

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sumproduct basics

    In B2 dragged across and down
    =SUMPRODUCT(--(SALES!$A$2:$A$31=BREAKDOWN!$A2),--(SALES!$D$2:$D$31=B$1),SALES!$C$2:$C$31)

    does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  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 basics

    In B2:

    =SUMPRODUCT(--(SALES!$A$2:$A$31=$A2),--(SALES!$D$2:$D$31=B$1),SALES!$C$2:$C$31)

    copied down and over.
    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
    Registered User
    Join Date
    05-19-2010
    Location
    Brazil
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Sumproduct basics

    Wow you guys are great! This helped me SO much! I'd pay you the 10 rounds of drinks if I had the chance! Thank you both very 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