+ Reply to Thread
Results 1 to 8 of 8

COUNTIFS and SUMPRODUCT help

  1. #1
    Registered User
    Join Date
    07-18-2013
    Location
    Indianapolis, IN
    MS-Off Ver
    Standard 2010
    Posts
    3

    COUNTIFS and SUMPRODUCT help

    I am trying to figure out how to make a cell diplay a sum of other cells in the worksheet IF they meet 2 criteria found in other columns. So for example, Column A displays loan amounts, Column B shows interest rates, Column C shows terms. I want a seperate cell in the worksheet to search columns B and C and if both criteria are met then sum the amounts from column A.
    Loan Amounts Rate Term
    155,000 3.25 360
    125,600 4.0 360
    265,000 3.25 120
    189,500 3.25 360

    I want a cell somewhere else in the worksheet that would show a result of 344,500 (amounts from column A that meet both criteria of 3.25 AND 360, summed)
    Any help would be appreciated!
    Last edited by Stacy1; 07-19-2013 at 10:11 AM. Reason: admin told me to

  2. #2
    Registered User
    Join Date
    07-12-2012
    Location
    New Hampshire, United States
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: Formula Help

    =sumifs(a2:a5, b2:b5, "=3.25", c2:c5, "=360")

  3. #3
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Re: Formula Help

    Hi Stacy

    carrob's formula is the one. Might i also suggest that you use a cell (possibly even with a drop down box for data validation) that you can enter the variables into. This makes the sheet more flexible.

    So using carrob's formula, instead of the sections "=3.25" and "=360", use a cell reference of say D1 and D2.

    Then you can enter into D1 any rate that you want to search for, and in D2 have any term.
    It will then give you a sum of all of the loans that meet the criteria.

    the data validation will help if you only have specific terms or rates, so you can pick them from a drop down box.

    Hope this helps make your sheet more valuable.
    Handy things to keep in mind:

    Click *, if my suggestion has helped you
    If your problem is solved, then please mark the thread as SOLVED

    Sharing is Caring .... spread the knowledge

  4. #4
    Registered User
    Join Date
    07-18-2013
    Location
    Indianapolis, IN
    MS-Off Ver
    Standard 2010
    Posts
    3

    Re: Formula Help

    I got the formula to work, but now I am needing to add another condition and it is not working. Can you tell me what is wrong with this formula?
    =SUMIFS($A$2:$A$47,$B$2:$B$47,4%,$C$2:$C$47,120,$C$2:$C$47,180)
    Thanks for your help!

  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: Formula Help

    You're testing the range C2:C47 for 2 different conditions at the same time.

    C2:C47 = 120
    C2:C47 = 180

    The cells can not = 120 and 180 at the same time so the result will always be 0.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    07-18-2013
    Location
    Indianapolis, IN
    MS-Off Ver
    Standard 2010
    Posts
    3

    Re: COUNTIFS and SUMPRODUCT help

    Ok, I understand that. So what do you do if you want to sum up numbers from column A that have a specific rate in column B and EITHER a 120 OR 180 in column C?

  7. #7
    Registered User
    Join Date
    07-12-2012
    Location
    New Hampshire, United States
    MS-Off Ver
    Excel 2010
    Posts
    80

    Re: COUNTIFS and SUMPRODUCT help

    While it may not be the most efficient formula, it still works:

    =SUM(SUMIFS(A2:A47,B2:B47, "=4%", C2:C47, "=120"), SUMIFS(A2:A47,B2:B47,"=4%", C2:C47,"=180"))

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

    Re: COUNTIFS and SUMPRODUCT help

    Like this...

    =SUM(SUMIFS($A$2:$A$47,$B$2:$B$47,4%,$C$2:$C$47,{120,180}))

+ 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. Replies: 6
    Last Post: 10-08-2009, 03:45 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