try this:
=IF(ISNUMBER(F10)=TRUE,(G10+H10)*F10,IF(F10="RS",G10+H10,IF(F10=VLOOKUP(F10,$F$3:$G$5,1,0)=TRUE,G10+H10,0)))
Breakdown:
i start the function off by determining if the content of F10 is a number or not. If it is (a % in this case), it adds G10+H10 and then multiplies that sum by the value of F10. IF is finds that F10 is not a value, it determines if F10="RS". if that is found to be true, it adds G10+H10. if F10 does not equal "RS", i used your vlookup function with a twist. my last part will look for the value of F10 in F3:G5 and if it finds that value it will techincally return a "TRUE".....SSSSOOO, if it looks at F10 and it finds that it contains either of the values in F3:F5, it will add G10+H10. The very last part is if all conditions have been found to be false... i just made it return a zero (0).
Examples:
F10=50%:
=IF(ISNUMBER(F10)=TRUE,(G10+H10)*F10,IF(F10="RS",G10+H10,IF(F10=VLOOKUP(F10,$F$3:$G$5,1,0)=TRUE,G10+H10,0)))
=IF(TRUE
,(G10+H10)*F10,IF(F10="RS",G10+H10,IF(F10=VLOOKUP(F10,$F$3:$G$5,1,0)=TRUE,G10+H10,0)))
=(2+3)*50%
=
5*50%
=2.5 ===>1 will be displayed
F10=USD
=IF(ISNUMBER(F10)=TRUE,(G10+H10)*F10,IF(F10="RS",G10+H10,IF(F10=VLOOKUP(F10,$F$3:$G$5,1,0)=TRUE,G10+H10,0)))
=FALSE,(G10+H10)*F10,IF(F10="RS",
G10+H10,IF(F10=VLOOKUP(F10,$F$3:$G$5,1,0)=TRUE,
G10+H10,
0)))
=FALSE,(G10+H10)*F10,FALSE,G10+H10,IF(F10=VLOOKUP(F10,$F$3:$G$5,1,0)=TRUE,
G10+H10,
0)))
=FALSE,(G10+H10*F10,FALSE,G10+H10,TRUE,
G10+H10,0)))
=
G10+H10
=
2+3 =5 ===>1 will be displayed
I had both examples color coded by argument but for some reason it didnt save my 'edit'....
