"IF" type formula

G

G118

How do you create the formula for the following:

If cell X has a certain character (1,2,3,4,5,6) then I want cell Y to be
populated with a determiend value based on X (for example 1=20%, 2=40%,
5=75%).

THank you.
 
J

Jason Morin

Using VLOOKUP is one way. For example:

=VLOOKUP(A1,{1,0.2;2,0.4;5,0.75},2,0)

HTH
Jason
Atlanta, GA
 
Top