+ Reply to Thread
Results 1 to 3 of 3

SUMIF function with multiple criteria

  1. #1
    Registered User
    Join Date
    10-23-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    21

    Lightbulb SUMIF function with multiple criteria

    Hello,

    I am trying to get a spreadsheet to give me a column total if the date in another column is in a certain range and if the value in another column reads "DBT training". I have come up with the formula below but apparently it contains an error, is anyone of aware of how I might be able to remedy the problem?

    =SUMIF('Main Database'!K$4:K$1700,">"&'Main Database'!$C$1,'Main Database'!S$4:S$1700)-SUMIF('Main Database'!K$4:K$1700,">"&'Main Database'!$G$1,'Main Database'!S4:S$1700)-SUMIF('Main Database'!J4:J1700="DBT training",'Main Database'!S4:S$1700)

    Thanks!

    Anna

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

    Re: SUMIF function with multiple criteria

    Without using a helper colum on Main Database sheet you could use SUMRPODUCT.

    Based on my interpretation of your prior post formula perhaps

    Please Login or Register  to view this content.
    Note: in the above I am setting test = DBT (per narrative) rather than <> as implied in your earlier formula

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: SUMIF function with multiple criteria

    Try:


    =Sumproduct(--('Main Database'!K$4:K$1700>'Main Database'!$C$1),--('Main Database'!K$4:K$1700<='Main Database'!$G$1),--('Main Database'!J4:J1700="DBT training"),'Main Database'!S4:S$1700)
    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.

+ 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