+ Reply to Thread
Results 1 to 3 of 3

Sumif(s) Formula Help

  1. #1
    Registered User
    Join Date
    09-28-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2003
    Posts
    1

    Sumif(s) Formula Help

    Greetings,

    So I've been trying to mull around a bit with sumif and sumifs formulas for my particular need, but much to my chagrin I have been unsuccessful with my attempts. I'm currently using Excel 2003 for a rudimentary database and I'm trying to come up with something quick and dirty that will do a few calculations off the data. Basically what I need to know is if I'm using the right tool, and/or if it is possible to do it in Excel and how.

    Off the attached file--> I'm trying to get a formula to add up specific months in specific years of invoice data for specific Task Assignments (TAs). So essentially I'm trying to get a formula for the sum of all "Invoiced Amount" where "Month"= X, Y, or Z and "Year"= AAAA for which "TA" = BB and "Company"= "YYY".

    I tried starting off with just a month and year formula with =sumif(F:F,and(C:C=or(1,2,3),E:E=2010))
    Obviously this is wrong as my result is always zero.

    Is this best for programming or is it possible in Excel? Please note I have no knowledge of VBA.

    Thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,077

    Re: Sumif(s) Formula Help

    Assuming that SUMPRODUCT is available in Excel 2003, try this in cell G2:
    =SUMPRODUCT(--($C$2:$C$20=1),--($E$2:$E$20=$J$2),--($A$2:$A$20=12),--($B$2:$B$20=$I$2),$F$2:$F$20).

    Aaaargh! The attachment function here isn't working for me. My formula references these additional lookup tables in columns I and J:

    Unique Companies Unique Years
    TRX 2010
    XRC 2011
    TSI 2009
    ISC
    STSI

    Using the lookup tables means you can easily add companies, months, years, without editing your formulas except to expand the ranges. You can add your own for months and whatever other lookups you need.
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Sumif(s) Formula Help

    if you work with Excel 2003, why did you post an xlsx file? Using 2007 or later, there is also Sumifs() which is a lot faster than Sumproduct()

+ 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