Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Conditional Formatting

Is there a way to have a list validation that allows the box to change
currencies. For example, if i have a validation stating USD, CAD and I click
USD. And type in an amount it will come up as $1,222 or C$1000 depending on
what i choose? Any information would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Conditional Formatting

Not through Conditional Fomatting and not in one cell.

Would you need to use the numbers later for calculation?

If not, you could use a formula in a helper cell to multiply by the exchange
rate and insert the TEXT function to format the cells as $ or C$ depending
upon which was selected from the DV dropdown.

Place formula in C1

=IF(A1="USD",TEXT(B1*$E$1,"$#,##0.00"),TEXT(B1,"C$ #,##0.00"))

A1 has the dropdown with USD or CAD as choices.

B1 is where you enter the amount of 1000. If CAD is selected in A1, the
1000 will remain and become formatted as a text value of C$1000.00

E1 is the cell with the exchange rate.

If USD is selected, the 1000 is multiplied by the exchange rate and
displayed as $1222.00

Otherwise I would suggest using event code which could do the above in the
cell in which you enter the amount............no need for a helper cell and
the values would be actual numbers......not text.


Gord Dibben MS Excel MVP


On Wed, 20 May 2009 12:17:01 -0700, Chris 21222222
wrote:

Is there a way to have a list validation that allows the box to change
currencies. For example, if i have a validation stating USD, CAD and I click
USD. And type in an amount it will come up as $1,222 or C$1000 depending on
what i choose? Any information would be greatly appreciated.


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
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 07:25 AM.

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

About Us

"It's about Microsoft Excel"