PC Review


Reply
Thread Tools Rate Thread

copy conditional formats

 
 
excelWalter
Guest
Posts: n/a
 
      2nd Nov 2003
I've spent the past 2 days researching this issue, but have come up dry.
I'm hoping you can help me.

I have a range of cell, 2 abreast in this instance, and I have placed
conditional formatting on them.

1) if B2 = x than range (B22) is green
2) if B2 = y than range (B22) is yellow
3) if B2 = z than range (B22) is red

...

1) if B6 = x than range (G6:I6) is green
2) if B6 = y than range (G6:I6) is yellow
3) if B6 = z than range (G6:I6) is red


This works great.

My quandary is "copying" this conditional formatting to other cells.

( Column B->D Rows 2->26 ) and ( G->I Rows 18->40 ) need the same
formatting, but each row is based on the value of it first column of
the set (B & G) of that row.

I've used PAINTER. I've used PASTE->Special.

All these options copy the formatting alright, but it does not change
the referential cell. It all points back to B2.

I have a pretty large sheet I would like to format this way, and it
would take hours to hand re-format each range.

Not to mention when I add more to this set, and I will.

Do you have any tricks you can share.

Thanks again for your help.

Walter



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      2nd Nov 2003
You could do it in two steps:

Select B226
(keep B2 the activecell)

Write your conditional formatting formula using B2, but use $b2 as the
reference. Each of the other rows will get the same formula (offset to match
its row), but the $B will mean that it's always looking at the value in column B
of that row.

Then do the similar thing for G18:I40 (Use $g18 as the reference.)



excelWalter wrote:
>
> I've spent the past 2 days researching this issue, but have come up dry.
> I'm hoping you can help me.
>
> I have a range of cell, 2 abreast in this instance, and I have placed
> conditional formatting on them.
>
> 1) if B2 = x than range (B22) is green
> 2) if B2 = y than range (B22) is yellow
> 3) if B2 = z than range (B22) is red
>
> ..
>
> 1) if B6 = x than range (G6:I6) is green
> 2) if B6 = y than range (G6:I6) is yellow
> 3) if B6 = z than range (G6:I6) is red
>
> This works great.
>
> My quandary is "copying" this conditional formatting to other cells.
>
> ( Column B->D Rows 2->26 ) and ( G->I Rows 18->40 ) need the same
> formatting, but each row is based on the value of it first column of
> the set (B & G) of that row.
>
> I've used PAINTER. I've used PASTE->Special.
>
> All these options copy the formatting alright, but it does not change
> the referential cell. It all points back to B2.
>
> I have a pretty large sheet I would like to format this way, and it
> would take hours to hand re-format each range.
>
> Not to mention when I add more to this set, and I will.
>
> Do you have any tricks you can share.
>
> Thanks again for your help.
>
> Walter
>
> ------------------------------------------------
> ~~ Message posted from http://www.ExcelTip.com/
> ~~ View and post usenet messages directly from http://www.ExcelForum.com/


--

Dave Peterson
(E-Mail Removed)
 
Reply With Quote
 
dnickelson
Guest
Posts: n/a
 
      2nd Nov 2003
also, when you are trying to copy and paste, the above tips touches on
the reason it always refers to B2. Conditional formats default to
putting the $ in front of both the column and row. Because of this,
when you paste the format, it points literally to the cell B2.

If you just get rid of the $ in front of the 2, leaving $B2, as
mentioned above, your conditional format should adjust correctly in the
future (when you start adding additional fields and may not want to
redo the formula for the entire range.)
Hope this helps.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

 
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
Programmatically copy Conditional formats from one cell to another Barb Reinhardt Microsoft Excel Programming 1 11th Dec 2009 11:35 AM
copy conditional formats Bill Roberts Microsoft Excel Discussion 19 8th Dec 2009 03:15 AM
Copy Conditional Formats on a List jlclyde Microsoft Excel Misc 1 6th Jan 2009 01:02 PM
How do I copy conditional formats so it changes cell references? =?Utf-8?B?Q2h1Y2tpZSBFLg==?= Microsoft Excel Worksheet Functions 2 20th Oct 2005 03:51 PM
Copy Conditional Formats MM Microsoft Excel Programming 2 3rd Aug 2004 02:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:00 AM.