=SUM (IF((A1:A1001)*(D1:D100<""),C1:C100))
which is an array formula, so commit with Ctrl-Shift-Enter
--
HTH
RP
(remove nothere from the email address if mailing direct)
"amrezzat" wrote in
message ...
heloo
if i have 5 columns like these
1 microsoft 100 50
2 sakhr
3 intel
1 microsoft 100 50
1 microsoft 100 40
and i want to sum the third column only if the forth column has a value
(for only the numer one company (microsoft) )
so the answer will be 200 not 300
thanks
--
amrezzat
------------------------------------------------------------------------
amrezzat's Profile:
http://www.excelforum.com/member.php...o&userid=28766
View this thread: http://www.excelforum.com/showthread...hreadid=485033