Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 262
Default 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?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default 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?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default 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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I type NWO and it becomes NOW How can I keep NWO from changing? JCB Excel Discussion (Misc queries) 2 May 2nd 06 04:06 PM
chart type keeps changing Jbear Charts and Charting in Excel 1 April 28th 06 12:21 PM
changing the default type of searching in the find function Jose Roberto Excel Discussion (Misc queries) 1 November 29th 05 12:51 AM
Changing a specific character type in text string olasa Excel Discussion (Misc queries) 0 March 20th 05 11:35 PM
changing the order shown in the save type menu Michelle Setting up and Configuration of Excel 1 March 18th 05 07:15 AM


All times are GMT +1. The time now is 06:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"