+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Sumif(s) formula help

  1. #1
    Registered User
    Join Date
    05-05-2010
    Location
    Maidenhead, England
    MS-Off Ver
    Excel 2007
    Posts
    39

    Sumif(s) formula help

    Hi all,

    I have the data

    Please Login or Register  to view this content.
    I would like to sum the far right values, if the 3rd column does NOT contain the word metal AND "In" in the 2nd column.

    For example the sumif(s) would not include the 1st or 2nd lines as they contain metals and are In. It would however include the last line as this contains metals, but is an Out.

    Hope that makes sense.

    Thanks
    Paul
    Last edited by A[L]C; 08-09-2011 at 09:40 AM.

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

    Re: Sumif(s) formula help

    =Sumifs(E1:E10,B1:B10,"In",C1:C10,"<>*metal*")

    where table above is in A1:E10.
    Last edited by NBVC; 08-09-2011 at 09:17 AM.
    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.

  3. #3
    Registered User
    Join Date
    05-05-2010
    Location
    Maidenhead, England
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: Sumif(s) formula help

    Thanks NBVC. Not quite what I am after, if I read this correctly it will also exclude any that are "Out". However I would like it to only exclude those which are "In" AND "Metals".

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

    Re: Sumif(s) formula help

    Then perhaps:

    =SUMIFS(E1:E10,B1:B10,"In",C1:C10,"<>*metal*")+SUMIF(B1:B10,"<>IN",E1:E10)

  5. #5
    Registered User
    Join Date
    05-05-2010
    Location
    Maidenhead, England
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: Sumif(s) formula help

    Lovely! I see what you have done there, a bit of lateral thinking. Thank you

    Changed to solved and added rep

+ 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