Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Had a good search but have to ask sadly.
Using a Macro I have generated several columns of data. For columns F, H, I and J I want to in effect conditional format based on 4 conditions- the 3 limit stumps me! The idea is that all cells in range which have "1st" are on colour (with different text colour), "2nd" and so on- BUT there is more than just "1st" etc in the cell. Using conditional formatting I've got the result below, but of course can't add a 4th! Any ideas/help please. I've self taught myself Macros but I can only go so far. ' F Column Columns("F:F").Select Selection.FormatConditions.Delete Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _ "=ISNUMBER(SEARCH(""1st"",$F1))" Selection.FormatConditions(1).Font.ColorIndex = 2 Selection.FormatConditions(1).Interior.ColorIndex = 10 Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _ "=ISNUMBER(SEARCH(""2nd"",$F1))" Selection.FormatConditions(2).Interior.ColorIndex = 43 Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _ "=ISNUMBER(SEARCH(""3rd"",$F1))" Selection.FormatConditions(3).Font.ColorIndex = xlAutomatic Selection.FormatConditions(3).Interior.ColorIndex = 45 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Format text string | Excel Discussion (Misc queries) | |||
Create a 'text' string based on whether values appear in other cel | Excel Worksheet Functions | |||
Averaging Columns based on a Text String | New Users to Excel | |||
how do i format a cell based on format of a range of cells? | Excel Discussion (Misc queries) | |||
Converting text string to a its proper time format | Excel Discussion (Misc queries) |