=IF(OR(C62={"Tobacco","Cri","Peanuts"}),VLOOKUP(C62,tblFoodType),VLOOKUP(C62,tblProductTypeCode,3,0))
I am trying to insert 1 VLOOKUP if Condition 1 is true and another VLOOKUP if condition 2 is true - but the result
If Tobacco, Cri,Peanuts is true prints out VLOOKUP(C62,tblFoodType) - the formula thinks teh VLookup is a string not an actual formula.
Is there anyway of writing an IF statement thats does this ?
Mo
I am trying to insert 1 VLOOKUP if Condition 1 is true and another VLOOKUP if condition 2 is true - but the result
If Tobacco, Cri,Peanuts is true prints out VLOOKUP(C62,tblFoodType) - the formula thinks teh VLookup is a string not an actual formula.
Is there anyway of writing an IF statement thats does this ?
Mo