View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
wormburner wormburner is offline
external usenet poster
 
Posts: 6
Default SUMIF using 2 cells that equal each other

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?