Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Rows of data from two sources have been combined and sorted on one worksheet.
To identify the source of the data, the rows are 'flagged' with the acromyns "ign" or "leg". The only reason they are appearing on this report is that there is/are cell(s) of data that have been incorrectly entered in one of the two records. In this worksheet, I need to find and highlight the following: 1) If the data in Column A2 equal "ign" and Column A3 equals "leg" and 2) If columns B2 and B3 record numbers are the same then 3) Find the cells within range c2 and ae3 that are different and highlight them. This will be comparing two rows of cells, c2 thru ae2 and c3 thru ae3. I have the following 'conditional formatting' formula as part of a subroutine. Range("$C2:$ae3").Select Selection.FormatConditions.Delete Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _ "=AND($A1=""ign"",$A2=""leg"",$B2=$B3,$C2<$AE 3)" With Selection.FormatConditions(1).Font .Bold = True .Italic = True End With Selection.FormatConditions(1).Interior.ColorIndex = 40 End If Loop This routine identifies the records and selects the rows. But it highlights only the "ign" row of data; and, it highlights everything in the row, except for cells with zero values. Can you correct this for me? phmckeever |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I convert conditional formatting into explicit formatting? | Excel Discussion (Misc queries) | |||
Formatting Conditional Formatting Icon Sets | Excel Discussion (Misc queries) | |||
Formatting cells in a column with conditional formatting? | Excel Discussion (Misc queries) | |||
Protect Cell Formatting including Conditional Formatting | Excel Discussion (Misc queries) | |||
Conditional Formatting that will display conditional data | Excel Worksheet Functions |