ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Conditional Formatting Range (https://www.excelbanter.com/excel-programming/319117-conditional-formatting-range.html)

dan

Conditional Formatting Range
 
I want to impliment a conditional format that covers a range comparing cells
in G to the cells F example: if G26<F26 then /. ./ color index=3, g27<F27
etc. To add a twist I am trying to start at row 26 ending @ 500. I have
figured out for a single cell but duplicating for a few hundred ....gotta be
an easier way.

Tom Ogilvy

Conditional Formatting Range
 
Range("G26:G500").Select
Selection.FormatConditions.Delete
Selection.FormatConditions.Add Type:=xlExpression,
Formula1:="=$G26<$F26"
Selection.FormatConditions(1).Interior.ColorIndex = 3

--
Regards,
Tom Ogilvy

"Dan" wrote in message
...
I want to impliment a conditional format that covers a range comparing

cells
in G to the cells F example: if G26<F26 then /. ./ color index=3, g27<F27
etc. To add a twist I am trying to start at row 26 ending @ 500. I have
figured out for a single cell but duplicating for a few hundred ....gotta

be
an easier way.




dan

Conditional Formatting Range
 
Genius Thanks Tom!!!! BTW Have any reccomendations for a VBA book??

"Tom Ogilvy" wrote:

Range("G26:G500").Select
Selection.FormatConditions.Delete
Selection.FormatConditions.Add Type:=xlExpression,
Formula1:="=$G26<$F26"
Selection.FormatConditions(1).Interior.ColorIndex = 3

--
Regards,
Tom Ogilvy

"Dan" wrote in message
...
I want to impliment a conditional format that covers a range comparing

cells
in G to the cells F example: if G26<F26 then /. ./ color index=3, g27<F27
etc. To add a twist I am trying to start at row 26 ending @ 500. I have
figured out for a single cell but duplicating for a few hundred ....gotta

be
an easier way.





Tom Ogilvy

Conditional Formatting Range
 
http://www.j-walk.com/ss/books/index.htm
Excel Books by John Walkenbach

http://www.oaltd.co.uk/OAPage.htm#Books
Stephen Bullen's site

--
Regards,
Tom Ogilvy


"Dan" wrote in message
...
Genius Thanks Tom!!!! BTW Have any reccomendations for a VBA book??

"Tom Ogilvy" wrote:

Range("G26:G500").Select
Selection.FormatConditions.Delete
Selection.FormatConditions.Add Type:=xlExpression,
Formula1:="=$G26<$F26"
Selection.FormatConditions(1).Interior.ColorIndex = 3

--
Regards,
Tom Ogilvy

"Dan" wrote in message
...
I want to impliment a conditional format that covers a range comparing

cells
in G to the cells F example: if G26<F26 then /. ./ color index=3,

g27<F27
etc. To add a twist I am trying to start at row 26 ending @ 500. I

have
figured out for a single cell but duplicating for a few hundred

.....gotta
be
an easier way.








All times are GMT +1. The time now is 05:33 PM.

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