Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
EA EA is offline
external usenet poster
 
Posts: 28
Default Conditional Formating - Currency

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


  #2   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default Conditional Formating - Currency

Hi,

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

HTH
Cheers
Carim

  #3   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 219
Default Conditional Formating - Currency

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) FormatConditional 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

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
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
Currency formating Sallie[_2_] Excel Discussion (Misc queries) 4 July 25th 09 07:40 PM
Conditional Formating - Currency EA Excel Discussion (Misc queries) 2 October 9th 06 08:20 PM
Currency Formating Sanj Excel Programming 1 June 24th 05 02:44 PM
Currency formating problem Jerry Excel Discussion (Misc queries) 5 February 19th 05 06:39 PM
Formating currency in text box Doug Excel Programming 1 February 16th 05 10:42 PM


All times are GMT +1. The time now is 03:31 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"