+ Reply to Thread
Results 1 to 2 of 2

sum column using multiple conditions

  1. #1
    Registered User
    Join Date
    03-27-2013
    Location
    jakarta, indonesia
    MS-Off Ver
    Excel 2010
    Posts
    1

    sum column using multiple conditions

    Hi, I have a workbook with the following columns;
    - Date (Format: MM/DD/YYY) [column D]
    - Sales (Number) [Column G]
    - Bidder (String) [this can be a name or Withdrawn] [Column H]

    I am trying to get two sums;

    1) the first of the total sales in a particular month, i got this with the following formula:
    =SUMPRODUCT((MONTH('SH1'!D25:'SH1'!D1375)=6)*(YEAR('SH1'!D25:'SH1'!D1375)=2012)*'SH1'!G25:'SH1'!G1375)

    2) The second is where i am having a problem, it keeps on giving the wrong value, this is the formula i used:
    =SUMPRODUCT((MONTH('SH1'!D20:'SH1'!D1370)=12)*(YEAR('SH1'!D20:'SH1'!D1370)=2011)*('SH1'!H19:'SH1'!H1369="Withdrawn")*'SH1'!G19:'SH1'!G1369)


    thanks in advance for the help

    cheers

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: sum column using multiple conditions

    Hi and welcome to the forum

    Without seeing some actual (sample) data, Its hard for me to make any suggestions. But if all you are doung is summingbased on certain criteria, perhaps trake a look at using sumifS() instead of sumproduct?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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