ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   4th conditional format? (https://www.excelbanter.com/excel-discussion-misc-queries/112586-4th-conditional-format.html)

PG Oriel

4th conditional format?
 
Hi,

Just wondering if it is possible to have a 4th, or 5th, or any amounts of
conditional formatting. I am feeling very restricted with the bog standard
three conditional formats.

Thanks.

Pete_UK

4th conditional format?
 
Try this link:

http://www.mcgimpsey.com/excel/conditional6.html

to get up to 6 formats. Only works with numbers.

Hope this helps.

Pete

PG Oriel wrote:
Hi,

Just wondering if it is possible to have a 4th, or 5th, or any amounts of
conditional formatting. I am feeling very restricted with the bog standard
three conditional formats.

Thanks.



Pete_UK

4th conditional format?
 
Or, if you want even more, try this free add-in download from Bob
Phillips:

http://www.xldynamic.com/source/xld.....Download.html

which will give you up to 30.

Hope this helps (further).

Pete

Pete_UK wrote:
Try this link:

http://www.mcgimpsey.com/excel/conditional6.html

to get up to 6 formats. Only works with numbers.

Hope this helps.

Pete

PG Oriel wrote:
Hi,

Just wondering if it is possible to have a 4th, or 5th, or any amounts of
conditional formatting. I am feeling very restricted with the bog standard
three conditional formats.

Thanks.



Bob Phillips

4th conditional format?
 
One way


'-----------------------------------------------------------------
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.


--
HTH

Bob Phillips

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

"PG Oriel" wrote in message
...
Hi,

Just wondering if it is possible to have a 4th, or 5th, or any amounts of
conditional formatting. I am feeling very restricted with the bog standard
three conditional formats.

Thanks.




Dave F

4th conditional format?
 
In XL 2007, yes. In previous versions, no.
--
Brevity is the soul of wit.


"PG Oriel" wrote:

Hi,

Just wondering if it is possible to have a 4th, or 5th, or any amounts of
conditional formatting. I am feeling very restricted with the bog standard
three conditional formats.

Thanks.



All times are GMT +1. The time now is 08:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com