+ Reply to Thread
Results 1 to 4 of 4

SUMIFS: Comparing 2 Ranges

  1. #1
    Registered User
    Join Date
    01-11-2016
    Location
    San Diego
    MS-Off Ver
    MAC 2011
    Posts
    4

    SUMIFS: Comparing 2 Ranges

    I am trying to get the sum of the numbers in Column A that are greater than the numbers in Column B.

    Screen Shot 2016-01-12 at 4.45.26 PM.png

    The formula I have that returns "23" is: =SUMIFS(A2:A9, A2:A9, ">" &B2:B9)

    However, it returns the number "23" because it's comparing all the numbers in Range A2:A9 to only B2, not the rest of the B Range. I would like A2 to be compared to B2 (add A2 to sum if A2>B2), A3 to be compared to B3 (add A3 to sum if A3>B3), etc.

    Please help!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: SUMIFS: Comparing 2 Ranges

    Try this:

    =SUMPRODUCT((A1:A9>B1:B9)*A1:A9)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-11-2016
    Location
    San Diego
    MS-Off Ver
    MAC 2011
    Posts
    4

    Re: SUMIFS: Comparing 2 Ranges

    Yes! thanksss

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: SUMIFS: Comparing 2 Ranges

    As it appears you've reached a conclusion, I've marked this thread SOLVED for you.
    FYI, this is done through the Thread Tools located above the first post in this thread. Thanks.

+ 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. Using SUMIFs to sum muliple criteria from ranges
    By tominghana in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-20-2015, 11:11 AM
  2. [SOLVED] SUMIFS Help - Multiple date ranges
    By dspblues in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 10-18-2014, 07:38 AM
  3. [SOLVED] Using SUMIFS across 2 distinct ranges?
    By controlfreak in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-27-2014, 07:37 AM
  4. Comparing Dates within SUMIFS
    By wjmatthews in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-01-2013, 04:55 PM
  5. [SOLVED] SUMIFS with time and date name ranges
    By tradersumit in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2012, 07:47 AM
  6. Sumifs Using Date Ranges
    By Loisw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-21-2012, 07:43 AM
  7. How to use SUMIFS when using two different date ranges
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-20-2011, 07:30 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