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.
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.
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
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.
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.
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.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks