How to change multiplier using letters

  • Thread starter Thread starter Pipeline welder
  • Start date Start date
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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top