ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to change multiplier using letters (https://www.excelbanter.com/excel-discussion-misc-queries/207870-how-change-multiplier-using-letters.html)

Pipeline welder

How to change multiplier using letters
 
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


joel

How to change multiplier using letters
 
=A1*LOOKUP(B1,{"D","T","";1.5,8,2})

"Pipeline welder" wrote:

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


ShaneDevenshire

How to change multiplier using letters
 
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.

--
Thanks,
Shane Devenshire


"Pipeline welder" wrote:

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



All times are GMT +1. The time now is 09:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com