It's a little different when using a cell reference:
=SUMIF(C122:C127,"<>"&$C$2,D122

127)
--
HTH,
RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================
I should also maybe add that I'm trying to use a cell reference as my
criteria - does this make a difference?
I'm trying to do =SUMIF(C122:C127,"<>$C$2",D122

127) but it just sums
everything, without taking into account the criteria.