+ Reply to Thread
Results 1 to 5 of 5

SUMIF with condition

  1. #1
    Forum Contributor
    Join Date
    01-18-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    128

    SUMIF with condition

    Dear Gurus,
    Here is a situation I am struggling with:
    ACTIVITY Main Main_Type Account Description Period Balance
    A0000300 1501 BS Notes Receivable $147,576.40
    A0000300 7603 Act Collection Costs $405.66
    A0000300 4708 Act Loan Fund Interest ($5.53)
    A0000300 4708 Act Loan Fund Interest ($2.41)

    On another worksheet, I would like to sum from this table for "ACTIVITY" codes, where the "Main" number is higher than 5000.
    So if on the other sheet, there is code A0000300, add up all the amounts where the Main number in this table is above 5000; therefore in this example the sum would be 405.66.

    Thank you very much for the help.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: SUMIF with condition

    Try

    =SUMIF(Sheet1!B:B,">5000",Sheet1!E:E)

    where
    - 'Sheet1' is your worksheet with the Data
    - Column B on Sheet 1 is 'Main'
    - Column E on Sheet 1 contains amounts
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    01-18-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    128

    Re: SUMIF with condition

    Hi Ace,
    The SUMIF formula is on a different tab. So the activity code has to be found on that tab looking in a table (see example) on another tab.
    Thanks!


    Quote Originally Posted by Ace_XL View Post
    Try

    =SUMIF(Sheet1!B:B,">5000",Sheet1!E:E)

    where
    - 'Sheet1' is your worksheet with the Data
    - Column B on Sheet 1 is 'Main'
    - Column E on Sheet 1 contains amounts

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: SUMIF with condition

    Need to read stuff thoroughly

    Use SUMIFS
    =SUMIFS(Sheet1!E:E,Sheet1!A:A,"A0000300",Sheet1!B:B,">5000")

    You can also use cell references for A0000300 and >5000

  5. #5
    Forum Contributor
    Join Date
    01-18-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    128

    Re: SUMIF with condition

    Hi Ace,
    Let me include part of the worksheets. Maybe I am not explaining it well. I need the SUMIF in Data 1, based on the data in Table 1. So the numbers to be added are looking for the same activity code with corresponding "Main" numbers above "5000".
    Thank you again.

    Quote Originally Posted by Ace_XL View Post
    Need to read stuff thoroughly

    Use SUMIFS
    =SUMIFS(Sheet1!E:E,Sheet1!A:A,"A0000300",Sheet1!B:B,">5000")

    You can also use cell references for A0000300 and >5000
    Attached Files Attached Files

+ 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. How to next condition to do Sumif
    By pph2113 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2013, 02:16 PM
  2. SumIf with more than one condition
    By qwyz in forum Excel General
    Replies: 5
    Last Post: 05-12-2009, 10:02 AM
  3. SUMIF with Condition
    By Isacael in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-06-2009, 07:37 PM
  4. [SOLVED] SUMIF - Compound Condition
    By Mike McLellan in forum Excel General
    Replies: 3
    Last Post: 01-11-2006, 07:00 AM
  5. condition: SUMIF
    By jeremy via OfficeKB.com in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-12-2005, 09:05 PM

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