Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
nitsa
 
Posts: n/a
Default Conditional formating

Is there a way to insert more than 3 conditions in the conditional formating
in excel?


--
dani
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Conditional formating

VBA. For example


'-----------------------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)
'-----------------------------------------------------------------
Const WS_RANGE As String = "H1:H10"

On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
Select Case .Value
Case 1: .Interior.ColorIndex = 3 'red
Case 2: .Interior.ColorIndex = 6 'yellow
Case 3: .Interior.ColorIndex = 5 'blue
Case 4: .Interior.ColorIndex = 10 'green
End Select
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


or an addin - http://www.xldynamic.com/source/xld.....Download.html



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"nitsa" wrote in message
...
Is there a way to insert more than 3 conditions in the conditional

formating
in excel?


--
dani



  #3   Report Post  
Posted to microsoft.public.excel.misc
Ken Knight
 
Posts: n/a
Default Conditional formating

A simple way to get 4 conditions is to change the default cell format to the
4th condition. Because conditional formatting overrides default
conditioning, the display in cells that don't meet the 3 conditions will
continue and the 4th will rever to default.
--
Ken Knight


"nitsa" wrote:

Is there a way to insert more than 3 conditions in the conditional formating
in excel?


--
dani

  #4   Report Post  
Posted to microsoft.public.excel.misc
Mo2 Mo2 is offline
external usenet poster
 
Posts: 34
Default Conditional formating

if it is only FONT that you want to conditionally format
you could have more than 3 conditions, without needing VBA code
see he
http://www.ozgrid.com/Excel/font-formats.htm

"Ken Knight" wrote:

A simple way to get 4 conditions is to change the default cell format to the
4th condition. Because conditional formatting overrides default
conditioning, the display in cells that don't meet the 3 conditions will
continue and the 4th will rever to default.
--
Ken Knight


"nitsa" wrote:

Is there a way to insert more than 3 conditions in the conditional formating
in excel?


--
dani

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 152
Default Conditional formating

http://www.ozgrid.com/Excel/font-formats.htm this link allows up to 6
conditional formats for font color. I think it meets your requirement.
Lou

"Mo2" wrote:

if it is only FONT that you want to conditionally format
you could have more than 3 conditions, without needing VBA code
see he
http://www.ozgrid.com/Excel/font-formats.htm

"Ken Knight" wrote:

A simple way to get 4 conditions is to change the default cell format to the
4th condition. Because conditional formatting overrides default
conditioning, the display in cells that don't meet the 3 conditions will
continue and the 4th will rever to default.
--
Ken Knight


"nitsa" wrote:

Is there a way to insert more than 3 conditions in the conditional formating
in excel?


--
dani

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
conditional formating cells i Excel based on other cells values Elias Petursson Excel Worksheet Functions 3 May 23rd 06 06:45 PM
excel conditional formating decimal fractions Andy Dixon Excel Worksheet Functions 6 April 17th 06 10:25 PM
Conditional formating using formulas arifnj Excel Worksheet Functions 4 October 27th 05 01:56 PM
VLOOKUP & Conditional Formating Help. Excel'ed Failures Excel Discussion (Misc queries) 6 August 16th 05 04:46 PM
more than 3 conditional formating in excel Manan Excel Discussion (Misc queries) 2 February 7th 05 09:12 PM


All times are GMT +1. The time now is 10:24 PM.

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"