PC Review


Reply
Thread Tools Rate Thread

Coloring a row

 
 
John K
Guest
Posts: n/a
 
      7th Dec 2009
I have a spreadsheet and I want to have cells colored from column A to K if
cell h is not blank. So if h3 has a date in it I want A3:K3 to be say light
blue. This is for Office 2003. I can do it with conditional formating in
2007, but my work place doesn't have 2007. I did use column L and put an if
statement to give a true or false in the cell depending on if the cell in
col. h was empty or not. Any ideas how to get this to work?
 
Reply With Quote
 
 
 
 
marcus
Guest
Posts: n/a
 
      8th Dec 2009
Hi John

This sort of thing will work in 2003 conditional formating. In Cell
A3 go to Format - conditional formattting. Formula is

Paste this

=IF($H3<>"",1,)

Choose your interior colour design.

Now copy this across to K3 and down to where you require it. You will
see that when there is data in Colmn H the corresponding row now turns
into the colour you specified.

This worked fine for me and I am using 2003.

Take care

Marcus
 
Reply With Quote
 
L. Howard Kittle
Guest
Posts: n/a
 
      8th Dec 2009
Hi John,

This may do what you want, in the worksheet code module.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target <> Range("H3") Then Exit Sub
Range("A3:K3").Interior.ColorIndex = xlNone
If Range("H3").Value <> 0 Then
Range("A3:K3").Interior.ColorIndex = 37
End If
End Sub

HTH
regards,
Howard

"John K" <(E-Mail Removed)> wrote in message
news26E89D5-D38C-4E5F-B254-(E-Mail Removed)...
>I have a spreadsheet and I want to have cells colored from column A to K if
> cell h is not blank. So if h3 has a date in it I want A3:K3 to be say
> light
> blue. This is for Office 2003. I can do it with conditional formating in
> 2007, but my work place doesn't have 2007. I did use column L and put an
> if
> statement to give a true or false in the cell depending on if the cell in
> col. h was empty or not. Any ideas how to get this to work?



 
Reply With Quote
 
David McRitchie
Guest
Posts: n/a
 
      8th Dec 2009
"John K" om...
> I have a spreadsheet and I want to have cells colored from column A to K if
> cell h is not blank. So if h3 has a date in it I want A3:K3 to be say light
> blue. This is for Office 2003. I can do it with conditional formating in
> 2007, but my work place doesn't have 2007. I did use column L and put an if
> statement to give a true or false in the cell depending on if the cell in
> col. h was empty or not. Any ideas how to get this to work?


You can do it with Conditional Formatting prior to Excel 2007 as well,
as long as you have no more than 3 conditional formatting formulas.
See the following -- I'm sure there is nothing on the page that requires 2007.
Conditional Formatting
http://www.mvps.org/dmcritchie/excel/condfmt.htm

--
HTH,
David McRitchie
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm


 
Reply With Quote
 
FSt1
Guest
Posts: n/a
 
      8th Dec 2009
hi
you can do it with conditional formating in 2003.
High light the range A3:K3
on the 2003 menu bar>format>conditional formating.....
in the CF dialog enter....
Formula is.......=$H3<>""....... click the format button and pick your color
from patterns.
you can copy the range A3:K3 down as far as you want/need.

Regards
FSt1

"John K" wrote:

> I have a spreadsheet and I want to have cells colored from column A to K if
> cell h is not blank. So if h3 has a date in it I want A3:K3 to be say light
> blue. This is for Office 2003. I can do it with conditional formating in
> 2007, but my work place doesn't have 2007. I did use column L and put an if
> statement to give a true or false in the cell depending on if the cell in
> col. h was empty or not. Any ideas how to get this to work?

 
Reply With Quote
 
John K
Guest
Posts: n/a
 
      9th Dec 2009
Thanks, that did the trick. Even my IT manager who uses excel all the time
didn't know you could us a conditional format formular over multiple cells.
That saved a lot of time putting in formulars in other columns.

Thanks again

"FSt1" wrote:

> hi
> you can do it with conditional formating in 2003.
> High light the range A3:K3
> on the 2003 menu bar>format>conditional formating.....
> in the CF dialog enter....
> Formula is.......=$H3<>""....... click the format button and pick your color
> from patterns.
> you can copy the range A3:K3 down as far as you want/need.
>
> Regards
> FSt1
>
> "John K" wrote:
>
> > I have a spreadsheet and I want to have cells colored from column A to K if
> > cell h is not blank. So if h3 has a date in it I want A3:K3 to be say light
> > blue. This is for Office 2003. I can do it with conditional formating in
> > 2007, but my work place doesn't have 2007. I did use column L and put an if
> > statement to give a true or false in the cell depending on if the cell in
> > col. h was empty or not. Any ideas how to get this to work?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Coloring Elton Law Microsoft Excel Worksheet Functions 2 5th Apr 2010 03:22 PM
Row coloring anaz.muhammed@gmail.com Microsoft Excel Programming 0 26th Apr 2009 09:02 PM
tab coloring =?Utf-8?B?cm1zdGFmZm9yZA==?= Microsoft Excel Worksheet Functions 2 24th Apr 2007 01:08 AM
Tab Coloring Todd Huttenstine Microsoft Excel Programming 3 1st Apr 2004 07:26 PM
coloring a tab Jan Eikeland Microsoft Excel Programming 4 18th Dec 2003 06:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:23 PM.