conditional number formats

I

I_need_help

Does anyone know how to link the number format of a cell on the value of
another cell by using the custom number format tool and not VBA?

For example:

if cell A1 = "GBP" then value in cell B1 will be displayed as either "£
<value>" or "GBP <value>"

So if the user then enters "EUR" in cell A1, then B1 will automatically
change to either "€ <value>" or "EUR <value>".

Thanks.
 
J

Jonathan Rynd

Does anyone know how to link the number format of a cell on the value
of another cell by using the custom number format tool and not VBA?

if cell A1 = "GBP" then value in cell B1 will be displayed as
"GBP <value>"

So if the user then enters "EUR" in cell A1, then B1 will automatically
change to "EUR <value>".

You can do it if you set aside an additional cell for the calculated
result.

For instance
A1 is GBP
B1 is 200
C1 is =A1 & " " & B1
then hide column B and protect column C.

If you want something else, then create a table
EUR {euro symbol}
USD $
JPY {yen symbol}

and use VLOOKUP to get the appropriate symbol.
 

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

Top