+ Reply to Thread
Results 1 to 3 of 3

conditional aggregation

  1. #1
    Registered User
    Join Date
    02-10-2011
    Location
    Geelong, Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    conditional aggregation

    I need help to work out the formula I need for my project.

    I have two worksheets. See attached.

    On Nikkis Working worksheet I have recorded all my data. In columns M&N I have the dates and amounts of deposits paid. In columns T&U I have the dates and amounts of invoices paid.

    I am currently using the following formula to work out how many quotes and invoices are processed each month. This is for the quotes accepted in Dec 2010.
    =SUMPRODUCT(--(MONTH('Nikkis Working'!M2:M1142)=MONTH(A20)),--(YEAR('Nikkis Working'!M2:M1142)=YEAR(A20)),--('Nikkis Working'!B2:B1142="Accepted"))

    I need to find the formula to have the amounts for the Deposits Paid for the Month and Invoices Paid for the month. Thank you in advance.

    Nikkis Working.JPG
    Nikki Critical data.jpg
    Last edited by DonkeyOte; 02-11-2011 at 03:31 AM. Reason: modified title

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

    Re: SUM formula

    If you're using XL2007 as implied you should be using COUNTIFS & SUMIFS rather than SUMPRODUCT (unless backward compatibility is required) as they are significantly more efficient.

    Your above SUMPRODUCT would be re-written as:

    Please Login or Register  to view this content.
    In terms of subsequent calculations:

    Please Login or Register  to view this content.
    both assume Accepted in B range remains a requirement - remove if not.

    Alternative to all of the above: use a Pivot Table


    On a final note - better to post files than images - they need not be your "real" files (confidential) just a file that reflects your set up etc...

  3. #3
    Registered User
    Join Date
    02-10-2011
    Location
    Geelong, Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: conditional aggregation

    Thank you for your help. Thats great.
    Last edited by drainedbrain; 02-16-2011 at 08:47 PM. Reason: got things working.

+ 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