So it would be a combination of the 2 formulae i sent earlier.
Enter in C20:
=IF(Sheet1!B1="foods",Sheet1!B16,Sheet1!B17)
Mangesh
--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile:
http://www.excelforum.com/member.php...o&userid=10470
View this thread:
http://www.excelforum.com/showthread...hreadid=373824