Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey,
In fact i'm looking for an "inverse" conditional format? I have a huge price list, and changes in price are marked in red. What I want is a second column next to the price column that has a formula that put's a "1" if the price is changed (marked red) and "0" if the price is unchanged... Any ideas? Thx in advance. Marc. --- Message posted from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Marc
first you have to use a UDF which returns the colorindex of a cell (for more information see http://www.cpearson.com/excel/colors.htm from which the following code is pasted): Function CellColorIndex(InRange As Range, Optional _ OfText As Boolean = False) As Integer ' ' This function returns the ColorIndex value of a the Interior ' (background) of a cell, or, if OfText is true, of the Font in the cell. ' Application.Volatile True If OfText = True Then CellColorIndex = InRange(1,1).Font.ColorIndex Else CellColorIndex = InRange(1,1).Interior.ColorIndex End If End Function Now put the following formula in the secon column: =IF(CellColorIndex(A1)=[code for your color],1,0) HTH Frank Hey, In fact i'm looking for an "inverse" conditional format? I have a huge price list, and changes in price are marked in red. What I want is a second column next to the price column that has a formula that put's a "1" if the price is changed (marked red) and "0" if the price is unchanged... Any ideas? Thx in advance. Marc. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Frank, this was all the info I needed :)
Marc. --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I filter the cells based in Fill color? | Excel Discussion (Misc queries) | |||
Couting based on color and Filter | Excel Worksheet Functions | |||
Change tab color based on current color of a cell | Excel Discussion (Misc queries) | |||
Advance Filter can be based on cell Color in Microsoft Excel | New Users to Excel | |||
How do I filter based on color in Excel? | Excel Worksheet Functions |