How to change multiplier using letters

P

Pipeline welder

I am using Excel 2007
A1=8

B1, requires an input in letter form, such as "D" or "T" or it is left empty

C1, would be the product of A1*2, if B1=D OR A1*1.5, if B1=T OR C1 would be
8 if B1 were left empty
 
S

ShaneDevenshire

Hi,

=IF(B1="D",A1*2,IF(B1="T",A1*1.5,""))

or

=IF(B1="","",A1*IF(B1="D",2,1.5))

Should do it. Note you have not dealt with the possibility that B1 contains
something else.
 
Top