Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Conditionally formatting entire rows

Hi,

I am using Excel 2007. I have a worksheet that has at least 10 columns and
many rows. I use the first column to allow me to "select" certain rows. If
I want to "select" a row, I enter an "x" in the first column. To leave a row
unselected, I leave the first column blank.

I would now like to change the fill color of all the cells in all the
selected rows. The conditional formatting feature makes it very easy to
change the formatting of cells in the first column that contain an "x". I
can't seem to figure out how to extend this so that if the first column in a
row contains an "x", I could change the fill color not just of the first cell
in that row, but also all the other cells in that row as well.

If anyone could tell me if this is possible and give me a clue how to do it,
I'd really appreciate it.

Thanks in advance,
Paul


--
Paul Kraemer
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Conditionally formatting entire rows

Paul,

Probably the easiest way is to apply a simple filter (Autofilter) and select
only those cells in the first column with an "X". Then select the entire
filtered subset and apply your fill colour before removing the filter.

"Paul Kraemer" wrote:

Hi,

I am using Excel 2007. I have a worksheet that has at least 10 columns and
many rows. I use the first column to allow me to "select" certain rows. If
I want to "select" a row, I enter an "x" in the first column. To leave a row
unselected, I leave the first column blank.

I would now like to change the fill color of all the cells in all the
selected rows. The conditional formatting feature makes it very easy to
change the formatting of cells in the first column that contain an "x". I
can't seem to figure out how to extend this so that if the first column in a
row contains an "x", I could change the fill color not just of the first cell
in that row, but also all the other cells in that row as well.

If anyone could tell me if this is possible and give me a clue how to do it,
I'd really appreciate it.

Thanks in advance,
Paul


--
Paul Kraemer

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 320
Default Conditionally formatting entire rows

Select ALL the cells yuo might want formatted based on the x in column A.
Then use conditional formatting based on a formula you enter which is
=$A1="x" then apply the color.
and that assumes A1 is the Active cell. (or Row 1 is active).

Bob Umlas
Excel MVP

"Paul Kraemer" wrote in message
...
Hi,

I am using Excel 2007. I have a worksheet that has at least 10 columns
and
many rows. I use the first column to allow me to "select" certain rows.
If
I want to "select" a row, I enter an "x" in the first column. To leave a
row
unselected, I leave the first column blank.

I would now like to change the fill color of all the cells in all the
selected rows. The conditional formatting feature makes it very easy to
change the formatting of cells in the first column that contain an "x". I
can't seem to figure out how to extend this so that if the first column in
a
row contains an "x", I could change the fill color not just of the first
cell
in that row, but also all the other cells in that row as well.

If anyone could tell me if this is possible and give me a clue how to do
it,
I'd really appreciate it.

Thanks in advance,
Paul


--
Paul Kraemer



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Conditionally formatting entire rows

Hi Bob,

Thanks for your response. Using the formula you suggested works perfectly,
but I can only seem to get it to work if I create a different conditional
formatting rule for each row, one row at a time. In other words, creating
the following rules one row at a time works:

Row 1 rule =$B1="x"
Row 2 rule = $B2="x"
....
Row N rule = $BN="x"

I was wondering, is there any way I can select all rows and create just one
rule that can apply to all rows? If not, is there a way that after creating
a working rule for one row, can I copy it somehow and paste it onto the rest
of the rows (with the row number reference in the rule adjusting
automatically for each row)?

Thanks again for your help,
Paul


--
Paul Kraemer


"Bob Umlas" wrote:

Select ALL the cells yuo might want formatted based on the x in column A.
Then use conditional formatting based on a formula you enter which is
=$A1="x" then apply the color.
and that assumes A1 is the Active cell. (or Row 1 is active).

Bob Umlas
Excel MVP

"Paul Kraemer" wrote in message
...
Hi,

I am using Excel 2007. I have a worksheet that has at least 10 columns
and
many rows. I use the first column to allow me to "select" certain rows.
If
I want to "select" a row, I enter an "x" in the first column. To leave a
row
unselected, I leave the first column blank.

I would now like to change the fill color of all the cells in all the
selected rows. The conditional formatting feature makes it very easy to
change the formatting of cells in the first column that contain an "x". I
can't seem to figure out how to extend this so that if the first column in
a
row contains an "x", I could change the fill color not just of the first
cell
in that row, but also all the other cells in that row as well.

If anyone could tell me if this is possible and give me a clue how to do
it,
I'd really appreciate it.

Thanks in advance,
Paul


--
Paul Kraemer




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
[XL07] Conditionally format fill color for entire row Trevor Stone Excel Worksheet Functions 11 July 31st 08 10:26 PM
How to conditionally format entire row from contents of one cell? MaryatSHO Excel Discussion (Misc queries) 1 September 11th 06 07:31 PM
Conditionally Formatting phmckeever Excel Worksheet Functions 1 August 25th 06 03:00 PM
Conditionally formatting rows junoon Excel Worksheet Functions 4 May 29th 06 10:36 PM
conditional formatting of entire rows Mike Excel Discussion (Misc queries) 1 May 17th 06 02:36 PM


All times are GMT +1. The time now is 04:30 AM.

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"