Try ...
=IF(ERROR.TYPE(B1/SUM(B1:B2))=2,100,B1/SUM(B1:B2))
Check your Excel Help for error.type or iserror functions for more
details.
Samo
--
Samo
------------------------------------------------------------------------
Samo's Profile:
http://www.excelforum.com/member.php...o&userid=34413
View this thread:
http://www.excelforum.com/showthread...hreadid=541894