Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default [XL07] Conditionally format fill color for entire row

Hi All,

Is it possible to conditionally format the fill color for an entire
row based on a cell reference?

For instance,

Columns 1,2,and 3 are text but column 4 is a number. I'd like to fill
the whole row blue if the number in that row equals 100.

Then I think I can use the painter to copy the formatting to the rest
of the sheet.

Any ideas would be great.

Thanks,

Trevor
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default [XL07] Conditionally format fill color for entire row

Firstly: I would not apply this to the WHOLE row as XL2007 has 16,384
columns
Second: why do you speak of 'column 4' rather than 'column D'?
Third: here is how to do what you asked

Select A1:K10
Use Home | Conditional Formatting | New Rules | "Use a formula ....."
In dialog the formula to use is =$D1=100 (or =$D1=100, as preferred) and
format as required
Note the 1 refers to row 1, so if you are using another starting row, adjust
as needed. The $ is essential for your purpose.

Note you can now use Conditional Formatting | Manages Rules and in the new
dialog you can specify the range to which the rule applies

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Trevor Stone" wrote in message
...
Hi All,

Is it possible to conditionally format the fill color for an entire
row based on a cell reference?

For instance,

Columns 1,2,and 3 are text but column 4 is a number. I'd like to fill
the whole row blue if the number in that row equals 100.

Then I think I can use the painter to copy the formatting to the rest
of the sheet.

Any ideas would be great.

Thanks,

Trevor



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 169
Default [XL07] Conditionally format fill color for entire row

Use a conditional format, Formula Is and tie it to your target cell. Once
you've verified it works, click the format painter then the row.
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"Trevor Stone" wrote:

Hi All,

Is it possible to conditionally format the fill color for an entire
row based on a cell reference?

For instance,

Columns 1,2,and 3 are text but column 4 is a number. I'd like to fill
the whole row blue if the number in that row equals 100.

Then I think I can use the painter to copy the formatting to the rest
of the sheet.

Any ideas would be great.

Thanks,

Trevor

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default [XL07] Conditionally format fill color for entire row

Trevor:

You would NOT want to fill the entire row, unless you really do have ALL
those columns containing data....

Instead, name the range you want to fill and setup vb code on the Page
change event to check for 100 in the field, if yes, fill it...
if range("A1:A1") = 100 then
With MyNamedRange
.Interior.Color = RGB(0, 0, 255)
.Font.Color = RGB(0, 0, 255)
End With
End If

Assuming you have multiple lines like this setup a for next loop to inspect
each range and cell.

"Trevor Stone" wrote:

Hi All,

Is it possible to conditionally format the fill color for an entire
row based on a cell reference?

For instance,

Columns 1,2,and 3 are text but column 4 is a number. I'd like to fill
the whole row blue if the number in that row equals 100.

Then I think I can use the painter to copy the formatting to the rest
of the sheet.

Any ideas would be great.

Thanks,

Trevor

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default [XL07] Conditionally format fill color for entire row

I have a related problem. In trying to change the color of the entire row
based on the contents of one cell in that row, only the first column gets
changed. The format indicates that it applies to $A$3:$D$22. What have I done
wrong?

Thanks

"M Kan" wrote:

Use a conditional format, Formula Is and tie it to your target cell. Once
you've verified it works, click the format painter then the row.
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"Trevor Stone" wrote:

Hi All,

Is it possible to conditionally format the fill color for an entire
row based on a cell reference?

For instance,

Columns 1,2,and 3 are text but column 4 is a number. I'd like to fill
the whole row blue if the number in that row equals 100.

Then I think I can use the painter to copy the formatting to the rest
of the sheet.

Any ideas would be great.

Thanks,

Trevor



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default [XL07] Conditionally format fill color for entire row

How does the formula look under formula is ?

--


Regards,


Peo Sjoblom

"Derf" wrote in message
...
I have a related problem. In trying to change the color of the entire row
based on the contents of one cell in that row, only the first column gets
changed. The format indicates that it applies to $A$3:$D$22. What have I
done
wrong?

Thanks

"M Kan" wrote:

Use a conditional format, Formula Is and tie it to your target cell.
Once
you've verified it works, click the format painter then the row.
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"Trevor Stone" wrote:

Hi All,

Is it possible to conditionally format the fill color for an entire
row based on a cell reference?

For instance,

Columns 1,2,and 3 are text but column 4 is a number. I'd like to fill
the whole row blue if the number in that row equals 100.

Then I think I can use the painter to copy the formatting to the rest
of the sheet.

Any ideas would be great.

Thanks,

Trevor



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default [XL07] Conditionally format fill color for entire row

The formula reads as =D3="VG" and it applies to =$A$3:$D$27

Only the "A" column gets formatted.

Did I provide what you needed?

Thanks.

"Peo Sjoblom" wrote:

How does the formula look under formula is ?

--


Regards,


Peo Sjoblom

"Derf" wrote in message
...
I have a related problem. In trying to change the color of the entire row
based on the contents of one cell in that row, only the first column gets
changed. The format indicates that it applies to $A$3:$D$22. What have I
done
wrong?

Thanks

"M Kan" wrote:

Use a conditional format, Formula Is and tie it to your target cell.
Once
you've verified it works, click the format painter then the row.
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"Trevor Stone" wrote:

Hi All,

Is it possible to conditionally format the fill color for an entire
row based on a cell reference?

For instance,

Columns 1,2,and 3 are text but column 4 is a number. I'd like to fill
the whole row blue if the number in that row equals 100.

Then I think I can use the painter to copy the formatting to the rest
of the sheet.

Any ideas would be great.

Thanks,

Trevor




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default [XL07] Conditionally format fill color for entire row

You need to understand the difference between relative and absolute
addressing.
Having seen what you've got in your formula for formatting A3, have a look
at what you've got as the formula for cell B4, for example.

If you are trying to apply the format to all columns as a result of the
content of column D, then in your original formula change your =D3="VG" to
=$D3="VG"
--
David Biddulph

"Derf" wrote in message
...
The formula reads as =D3="VG" and it applies to =$A$3:$D$27

Only the "A" column gets formatted.

Did I provide what you needed?

Thanks.

"Peo Sjoblom" wrote:

How does the formula look under formula is ?

--


Regards,


Peo Sjoblom

"Derf" wrote in message
...
I have a related problem. In trying to change the color of the entire
row
based on the contents of one cell in that row, only the first column
gets
changed. The format indicates that it applies to $A$3:$D$22. What have
I
done
wrong?

Thanks

"M Kan" wrote:

Use a conditional format, Formula Is and tie it to your target cell.
Once
you've verified it works, click the format painter then the row.
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"Trevor Stone" wrote:

Hi All,

Is it possible to conditionally format the fill color for an entire
row based on a cell reference?

For instance,

Columns 1,2,and 3 are text but column 4 is a number. I'd like to
fill
the whole row blue if the number in that row equals 100.

Then I think I can use the painter to copy the formatting to the
rest
of the sheet.

Any ideas would be great.

Thanks,

Trevor






  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default Conditionally format fill color for entire row

Another way is to select all of the cells to be formatted first, then
pick Conditional Format from the menu.
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 622
Default Conditionally format fill color for entire row

On Jul 31, 2:19 pm, Spiky wrote:
Another way is to select all of the cells to be formatted first, then
pick Conditional Format from the menu.


Sorry, didn't finish my own post.

I mean, select them all first, because then Excel should do the
absolute/relative reference properly automatically.


  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default [XL07] Conditionally format fill color for entire row

Oops, I should have seen that myself. My age must be having an effect. Thanks
for your help!

"David Biddulph" wrote:

You need to understand the difference between relative and absolute
addressing.
Having seen what you've got in your formula for formatting A3, have a look
at what you've got as the formula for cell B4, for example.

If you are trying to apply the format to all columns as a result of the
content of column D, then in your original formula change your =D3="VG" to
=$D3="VG"
--
David Biddulph

"Derf" wrote in message
...
The formula reads as =D3="VG" and it applies to =$A$3:$D$27

Only the "A" column gets formatted.

Did I provide what you needed?

Thanks.

"Peo Sjoblom" wrote:

How does the formula look under formula is ?

--


Regards,


Peo Sjoblom

"Derf" wrote in message
...
I have a related problem. In trying to change the color of the entire
row
based on the contents of one cell in that row, only the first column
gets
changed. The format indicates that it applies to $A$3:$D$22. What have
I
done
wrong?

Thanks

"M Kan" wrote:

Use a conditional format, Formula Is and tie it to your target cell.
Once
you've verified it works, click the format painter then the row.
--
Tips for Excel, Word, PowerPoint and Other Applications
http://www.kan.org/tips


"Trevor Stone" wrote:

Hi All,

Is it possible to conditionally format the fill color for an entire
row based on a cell reference?

For instance,

Columns 1,2,and 3 are text but column 4 is a number. I'd like to
fill
the whole row blue if the number in that row equals 100.

Then I think I can use the painter to copy the formatting to the
rest
of the sheet.

Any ideas would be great.

Thanks,

Trevor







  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Conditionally format fill color for entire row

I tried this method, and it formatted the entire selection without regard for
the conditional part. Obviously, I may have erred in the way I did it.

I do have the problem handled via the post from David.

Thanks for your input.

"Spiky" wrote:

On Jul 31, 2:19 pm, Spiky wrote:
Another way is to select all of the cells to be formatted first, then
pick Conditional Format from the menu.


Sorry, didn't finish my own post.

I mean, select them all first, because then Excel should do the
absolute/relative reference properly automatically.

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
change color of entire row by use conditional format Montu Excel Worksheet Functions 2 November 15th 07 10:02 AM
color entire row by using conditional format capital letter Excel Worksheet Functions 1 November 10th 07 09:55 AM
color entire row by using conditional format capital letter Excel Worksheet Functions 1 November 10th 07 09:24 AM
How to conditionally format entire row from contents of one cell? MaryatSHO Excel Discussion (Misc queries) 1 September 11th 06 07:31 PM
How do you format a sheet to fill the entire page to print? Lindsay Excel Discussion (Misc queries) 1 June 28th 05 09:17 PM


All times are GMT +1. The time now is 10: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"