A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional Formatting



 
 
Thread Tools Display Modes
  #1  
Old May 20th, 2009, 08:17 PM posted to microsoft.public.excel.worksheet.functions
Chris 21222222[_2_]
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  
Old May 21st, 2009, 01:00 AM posted to microsoft.public.excel.worksheet.functions
Gord Dibben
external usenet poster
 
Posts: 20,252
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.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:50 AM.


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