SUMIF using 2 cells that equal each other

  • Thread starter Thread starter wormburner
  • Start date Start date
W

wormburner

I am using SUMIF to add cells in a column but the criteria I want to use is
add the cell only if the criteria equals another cell. I do not want to enter
the actual variable of the cell as it changes for each row of column C.

As an example: =SUMIF('A2:A5001,"C2",D2:D5001) where "C2" equals a variable
that can change.

Is there any function I can use for the variable?
 
You almost had it, try this

=SUMIF(A2:A5001,C2,D2:D5001)
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Using SUMIFS with date range 4
sumifs function 3
SUMIF, use List as a Range 2
sumifs problem 1
Sumif & Sort 3
Sumif with not criterion 2
sumif with 2 variables 2
Merging Cells Calculation 2

Back
Top