Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
MAS MAS is offline
external usenet poster
 
Posts: 19
Default Conditional Formatting Limitations ?

Hi,

I have been trying to get all the cells in a row to change from one
background colour to another dependent upon the the last cell in the row
containing the word "Yes".

So for example, all cells in all rows are green. But when the last cell in
say row 5 contains the word "Yes" all the cells in row 5 need to change to
yellow.

I have managed this on a row by row basis by selecting all cells in a row
and using conditional formatting with formula =$I$1="Yes" on row 1,
=$I$2="Yes" on row 2 etc etc.

I have 1000 rows and I don't want to have to enter this on a row by row
basis so unless someone knows how to get conditional formatting to increment
the "$I$1" to "$I$2" etc I need another fix...

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Conditional Formatting Limitations ?

select all your cells (multiple rows and columns) and format according to
the activecell (assume A1 is the active cell)

the formula would be

=$I1="Yes"

--
Regards,
Tom Ogilvy


"MAS" wrote in message
...
Hi,

I have been trying to get all the cells in a row to change from one
background colour to another dependent upon the the last cell in the row
containing the word "Yes".

So for example, all cells in all rows are green. But when the last cell in
say row 5 contains the word "Yes" all the cells in row 5 need to change to
yellow.

I have managed this on a row by row basis by selecting all cells in a row
and using conditional formatting with formula =$I$1="Yes" on row 1,
=$I$2="Yes" on row 2 etc etc.

I have 1000 rows and I don't want to have to enter this on a row by row
basis so unless someone knows how to get conditional formatting to

increment
the "$I$1" to "$I$2" etc I need another fix...

Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 486
Default Conditional Formatting Limitations ?

Remove the $ sign before the number to change the reference of the row from
absolute to relative. Then when you copy the format to the other rows the
number will increment (but the colum will remain absolute).

=$I1="Yes"
--
HTH...

Jim Thomlinson


"MAS" wrote:

Hi,

I have been trying to get all the cells in a row to change from one
background colour to another dependent upon the the last cell in the row
containing the word "Yes".

So for example, all cells in all rows are green. But when the last cell in
say row 5 contains the word "Yes" all the cells in row 5 need to change to
yellow.

I have managed this on a row by row basis by selecting all cells in a row
and using conditional formatting with formula =$I$1="Yes" on row 1,
=$I$2="Yes" on row 2 etc etc.

I have 1000 rows and I don't want to have to enter this on a row by row
basis so unless someone knows how to get conditional formatting to increment
the "$I$1" to "$I$2" etc I need another fix...

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Conditional Formatting Limitations ?

Hi MAS

try this
Sub ColNr()

Dim i As Long
Dim kolA As Double


kolA = Cells(Rows.Count, "A").End(xlUp).Row

For i = 2 To kolA
If Range("I" & i) = "Yes" Then
Range("A" & i & ":I" & i).Interior.ColorIndex = 45
End If
Next i

End Sub

Regards Yngve

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Border Limitations for Conditional Formats Blue Max New Users to Excel 3 April 5th 10 01:28 PM
Conditional Format limitations Picman Excel Worksheet Functions 2 August 11th 09 09:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
Cell Limitations ? Formatting and Size when exporting to Tab based Text file? PaulH_1980 Excel Worksheet Functions 1 March 15th 06 11:51 PM
Conditional Formatting limitations... mjack003[_14_] Excel Programming 1 February 11th 04 09:42 PM


All times are GMT +1. The time now is 12:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"