PC Review


Reply
Thread Tools Rate Thread

Conditional Formating - Currency

 
 
EA
Guest
Posts: n/a
 
      9th Oct 2006
Does anyone know if it is possible to conditionally format cells based on
whether a cell is formatted to display either £, $ or Euro?


 
Reply With Quote
 
 
 
 
Carim
Guest
Posts: n/a
 
      9th Oct 2006
Hi,

Think it would be possible, provided the Currency format is applied ...
with Formula Is
=LEFT(CELL("format",A1),1)="C"

HTH
Cheers
Carim

 
Reply With Quote
 
=?Utf-8?B?R2FyeSBMIEJyb3du?=
Guest
Posts: n/a
 
      9th Oct 2006
Using a user-defined-function and Styles, it can be done.

1) create a style called 'POUND'
- Select 'Format'
- Select 'Style'
- Select 'Modify'
- Select 'Number' tab
- Select 'Currency'
- Change the 'Symbol' to 'English (United Kingdom)'
- Select 'OK'
- Change the 'Style Name' to "POUND" from "Normal"
- Select 'OK'
2) create a style called 'EURO'
- see above steps / selecting the Euro symbol
3) The style 'Currency' has probably already been created.
- If not, create it using the same steps as above
4) create the following UDF

'/=======================================/
' Function Purpose: Return the name of the style of the selected
' cell formatted to UPPER CASE
' ie the 'Currency' style returns 'CURRENCY'
'
Public Function CellStyle(Select_Cell As Range) As String
On Error Resume Next

Application.Volatile

CellStyle = UCase(Select_Cell.Style)

End Function
'/=======================================/

5) Format>Conditional Formatting...
Condition 1:
=CellStyle(B1)="POUND"
and coloring, etc.
Condition 2:
=CellStyle(B1)="CURRENCY"
and coloring, etc.
Condition 3:
=CellStyle(B1)="EURO"
and coloring, etc.

HTH,
--
Gary Brown
gary_brown@ge_NOSPAM.com
If this post was helpful, please click the ''Yes'' button next to ''Was this
Post Helpfull to you?''.


"EA" wrote:

> Does anyone know if it is possible to conditionally format cells based on
> whether a cell is formatted to display either £, $ or Euro?
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Currency formating Sallie Microsoft Excel Misc 4 25th Jul 2009 07:40 PM
Conditional Formating - Currency EA Microsoft Excel Misc 2 9th Oct 2006 08:20 PM
Currency Formating =?Utf-8?B?ZmVydmV0?= Microsoft Access Forms 2 28th Jul 2006 01:38 PM
Install dates formating using conditional formating? Jerry Eggleston Microsoft Excel Misc 2 9th Nov 2005 05:49 PM
Currency Formating =?Utf-8?B?U2Fuag==?= Microsoft Excel Programming 1 24th Jun 2005 02:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:30 AM.