Try
=IF(B1 = 1,A1+5,IF(B1 = 2,A1+3,IF(B1 = 3,A1+1,"")))
in cell C1
--
mrice
Research Scientist with many years of spreadsheet development experience
------------------------------------------------------------------------
mrice's Profile:
http://www.excelforum.com/member.php...o&userid=10931
View this thread:
http://www.excelforum.com/showthread...hreadid=544466