Formula

D

Dave

I am trying to create a formula. If discount code is A multiply by .5
if dsicount code is B multiply by .55 excetera
Any help would be appreciated
 
B

B4MB4M

maybe something like this :

A1 = discount code
A2 = money value
=IF(A1="A";A2*0,5;IF(A1="B";A2*0,55;IF(A1="C";A2*0,6;A2*0,65)))

if you need more discount codes...just add them to the end of the line

Regards
B4M
 
M

MyVeryOwnSelf

I am trying to create a formula. If discount code is A multiply by .5
if discount code is B multiply by .55 etcetera

One way...

If an amount is in A1 and a letter is in B1, put this in C1:
=A1*LOOKUP(B1,{"A",0.5;"B",0.55;"C",0.88})
Adjust for your specific discount list.
 
V

via135

hi!

in C1: =IF(B1="A",(A1*0.5),(A1*0.55))

where COL A having the amount
COL B having the discount code (either "A" or "B")

-via135
 
Top