seriousdamage
Board Regular
- Joined
- Aug 14, 2005
- Messages
- 58
Hi, I have a vlookup formula in one cell :
=(VLOOKUP(D7,'Foods Database'!A:D,4,0)*E7)
The formula looks into one sheet to match a food name,
and reports the amount of protein the food has
everything is then multiplied by the cell containing the quantity. (E7)
Sometimes the lookup reports "#N/A"
I would like to add to the above formula that if the result of the lookup is "#N/A" than
in the cell replace #N/A with "0" (zero)
Can I add a second formula in the same cell?
Many Thanks
=(VLOOKUP(D7,'Foods Database'!A:D,4,0)*E7)
The formula looks into one sheet to match a food name,
and reports the amount of protein the food has
everything is then multiplied by the cell containing the quantity. (E7)
Sometimes the lookup reports "#N/A"
I would like to add to the above formula that if the result of the lookup is "#N/A" than
in the cell replace #N/A with "0" (zero)
Can I add a second formula in the same cell?
Many Thanks