ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Changing a cells type based on it's value (https://www.excelbanter.com/excel-worksheet-functions/139382-changing-cells-type-based-its-value.html)

Keith

Changing a cells type based on it's value
 
I have a sheet that by selecting a scenario from a drop down list some of the
values change. This normally works fine. But this time I have a slight
problem.

In scenario 1 cell B4 will equal 500 but if scenario 2 is selected than B4
needs to equal 107%.

How can I change B4 back and forward from a value to a percentage?


Toppers

Changing a cells type based on it's value
 
3eith,
Would something along these lines work:

=IF(A1=1,TEXT(A2,"0.00"),TEXT(A3,"0.00%"))

Where A1 is your "scenario"
A2/A3 are formulae/values

HTH

"Keith" wrote:

I have a sheet that by selecting a scenario from a drop down list some of the
values change. This normally works fine. But this time I have a slight
problem.

In scenario 1 cell B4 will equal 500 but if scenario 2 is selected than B4
needs to equal 107%.

How can I change B4 back and forward from a value to a percentage?


Teethless mama

Changing a cells type based on it's value
 
=IF(A1="scenario 1",500,107%)

"Keith" wrote:

I have a sheet that by selecting a scenario from a drop down list some of the
values change. This normally works fine. But this time I have a slight
problem.

In scenario 1 cell B4 will equal 500 but if scenario 2 is selected than B4
needs to equal 107%.

How can I change B4 back and forward from a value to a percentage?



All times are GMT +1. The time now is 10:55 PM.

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