+ Reply to Thread
Results 1 to 6 of 6

SUMIFS: Cannot use the same criteria range (A column)

  1. #1
    Registered User
    Join Date
    12-23-2013
    Location
    Harrisburg, PA
    MS-Off Ver
    Office 365
    Posts
    6

    Exclamation SUMIFS: Cannot use the same criteria range (A column)

    Following the syntax of the SUMIFS formula --> Can "criteria_range1" be the same as "criteria_range2" ?

    It didn't work for me and I got the result as 0.

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: SUMIFS: Cannot use the same criteria range (A column)

    Yes, the criteria ranges can overlap with each other AND the SUM range... for example, put the numbers 1 through 10 in A1 through A10, then try this formula in another cell:

    =SUMIFS(A1:A10,A1:A10,">3",A1:A10,"<7")

    Should return 15 as the result. It works fine.

    - Moo

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIFS: Cannot use the same criteria range (A column)

    As Moo Said..

    Yes it can be.
    But wether it does what you want or not depends on what your intention is.

    It will be considered as an AND Criteria, not OR..

    If you're trying do to something like
    Sum A if B = "name1" or if B = "name2"
    That won't work, because it's checking for AND
    If B="name1" AND B="name2", which of coarse it's not possible for a cell in B to be equal to both names at the same time.

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: SUMIFS: Cannot use the same criteria range (A column)

    It works for me. Your formula is broken somewhere else. Post it and a sample data set.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  5. #5
    Registered User
    Join Date
    12-23-2013
    Location
    Harrisburg, PA
    MS-Off Ver
    Office 365
    Posts
    6

    Re: SUMIFS: Cannot use the same criteria range (A column)

    This is the data set I am working on.

    In the cell D7, I want to the formula to look up 4 diffrent codes in Column A and grab the coressponding values from column D and add them up. -- It was giving me 0 for 2 criteria, now it's giving me #VALUE error for 4 criteria. I am trying to figure out what I'm missing.
    Attached Files Attached Files

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIFS: Cannot use the same criteria range (A column)

    You're getting VALUE error because you are referencing ranges of different sizes.. D8:D1000 and A7:A1000

    But even with that corrected, it will return 0 because it's doing an AND criteria.
    it's not possible for a single cell in column A to = multiple values at the same time.

    Try

    =SUM(SUMIF(A8:A1000,{14100,30260,42780,44980},D8:D1000))
    Last edited by Jonmo1; 12-23-2013 at 04:11 PM.

+ 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 with variable range criteria
    By jnh0 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2013, 04:09 AM
  2. SUMIFS with a criteria range ?
    By vemix in forum Excel General
    Replies: 6
    Last Post: 12-20-2012, 11:56 PM
  3. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  4. [SOLVED] sumifs formula one range with two criteria
    By avk in forum Excel General
    Replies: 7
    Last Post: 07-13-2012, 02:13 PM
  5. Replies: 1
    Last Post: 05-16-2011, 05:00 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