OK...see if I'm on the right track here.
Put one of these formulas in a cell anywhere but in columns A, L, or
M:
=SUMIF($A$1:$A$40,5014,$L$1:$L$40)-SUMIF($A$1:$A$40,5014,$M$1:$M$40)
=SUMPRODUCT(--($A$1:$A$40=5014)*(($L$1:$L$40)-($M$1:$M$40)))
Does that help?
Ron
--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile:
http://www.excelforum.com/member.php...o&userid=21419
View this thread:
http://www.excelforum.com/showthread...hreadid=394944