+ Reply to Thread
Results 1 to 5 of 5

Sumifs

  1. #1
    Registered User
    Join Date
    06-15-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Sumifs

    Hi,

    Can anyone tell me what's wrong with my formula? I tried to use sumifs to sum the amount if the Fees is equal to "Bank" or "FX". It works if i just do one argument but not two. Please help!
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumifs

    One way:

    =SUM(SUMIF(A:A,{"Bank","FX"},B:B))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    06-15-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Sumifs

    Thanks! Could you explain why it has to add sum up front and when should the {} be used?

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Sumifs

    Try it like this:

    =SUMIFS(B:B,A:A,"Bank")+SUMIFS(B:B,A:A,"FX")

    or like this:

    =SUMIF(A:A,"Bank",B:B)+SUMIF(A:A,"FX",B:B)

    SUMIFS ANDs the conditions together, so they all have to be satisfied.

    Hope this helps.

    Pete

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumifs

    By itself, the SUMIF(S) function(s) can only accept a single criteria per range.

    In your application you need 2 criteria in one range. So, we add the SUM function which in effect is doing this:

    =SUM(SUMIF(A:A,"Bank",B:B),SUMIF(A:A,"FX",B:B))

    You can use cells to hold the criteria:

    D1 = Bank
    D2 = FX

    Then use this version:

    =SUMPRODUCT(SUMIF(A:A,D1:D2,B:B))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SUMIFS Puzzle - Trying to avoid adding multiple SUMIFS to get valid result
    By haldavid in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-09-2013, 03:42 PM
  2. [SOLVED] Sumifs, problem with the formula: =sumifs(c10:c200,<=today(),0)
    By Faustocruz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2012, 04:26 AM
  3. Sumifs
    By Peeekay in forum Excel General
    Replies: 12
    Last Post: 12-08-2010, 03:47 PM
  4. Can you SUMIFS until?
    By Brotherbread in forum Excel General
    Replies: 2
    Last Post: 11-25-2010, 10:12 PM
  5. Sumifs
    By mark909 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-01-2010, 10:20 AM

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