Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 661
Default Copying conditional formating

Hi All,

I need to copy the folowwing conditional fromat into my spreadsheet

Formula Is =COUNTIF(A4:G4,"Y")

I want to copy this so if G8= Y cells A8:G8 go grey etc
I have set the format but it wont copy. I have been paying around with the
$ sign but still no joy

My head hurts please help

VMT Paul
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Copying conditional formating

The conditional formating requires a boolean (true or false) to be returned.
Your expression returns a number. You really want something like this

COUNTIF($A4:$G4,"Y")=1

enter the conditional formating in Format - Conditional Format and change
"Cell Value is" to "formula is". enter your formula in the 1st box and
sleect the Pattern (color). Because the columns are always going to be A - G
put a dollar sign in front of the Column Letters.


To copy conditional formating you need to use PasteSpecial with format
selected. Put the conditional formating in one cell then copy and use
PasteSpecial in the other cells.

"Paul" wrote:

Hi All,

I need to copy the folowwing conditional fromat into my spreadsheet

Formula Is =COUNTIF(A4:G4,"Y")

I want to copy this so if G8= Y cells A8:G8 go grey etc
I have set the format but it wont copy. I have been paying around with the
$ sign but still no joy

My head hurts please help

VMT Paul

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Copying conditional formating

Highlight the cells A8:G8, then click on Format | Conditional
Formatting. In the pop-up you should select Formula Is rather than
Cell Value Is in the first box, and enter this formula:

=$G8="Y"

Then you can click on the Format button and if you want the background
colour to be grey you need to click the Patterns tab and then choose
grey. Click OK twice to exit the dialogue boxes.

If you want to apply the same formatting to other rows, then highlight
A8:G8 and double click the Format Painter icon. Then you can click on
A9, A10, A11 etc in turn and the format will be applied. Press <Esc
to cancel the Format Painter.

Hope this helps.

Pete

On Jan 26, 11:57*am, Paul wrote:
Hi All,

I need to copy the folowwing conditional fromat into my spreadsheet

Formula Is =COUNTIF(A4:G4,"Y")

I want to copy this so if G8= Y cells A8:G8 go grey etc
*I have set the format but it wont copy. I have been paying around with the
$ sign but still no joy

My head hurts please help

VMT Paul


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Copying conditional formating

I can't reconcile your formula with what you say you want to do.
If the condition for A8:G8 to be formatted is that G8=Y, the Formula Is
condition would be =$G8="Y".
--
David Biddulph

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

I need to copy the folowwing conditional fromat into my spreadsheet

Formula Is =COUNTIF(A4:G4,"Y")

I want to copy this so if G8= Y cells A8:G8 go grey etc
I have set the format but it wont copy. I have been paying around with the
$ sign but still no joy

My head hurts please help

VMT Paul



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 661
Default Copying conditional formating

Thanks very much Pete. Sorted

"Pete_UK" wrote:

Highlight the cells A8:G8, then click on Format | Conditional
Formatting. In the pop-up you should select Formula Is rather than
Cell Value Is in the first box, and enter this formula:

=$G8="Y"

Then you can click on the Format button and if you want the background
colour to be grey you need to click the Patterns tab and then choose
grey. Click OK twice to exit the dialogue boxes.

If you want to apply the same formatting to other rows, then highlight
A8:G8 and double click the Format Painter icon. Then you can click on
A9, A10, A11 etc in turn and the format will be applied. Press <Esc
to cancel the Format Painter.

Hope this helps.

Pete

On Jan 26, 11:57 am, Paul wrote:
Hi All,

I need to copy the folowwing conditional fromat into my spreadsheet

Formula Is =COUNTIF(A4:G4,"Y")

I want to copy this so if G8= Y cells A8:G8 go grey etc
I have set the format but it wont copy. I have been paying around with the
$ sign but still no joy

My head hurts please help

VMT Paul





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Copying conditional formating

You're welcome, Paul - thanks for feeding back.

Pete

On Jan 26, 2:02*pm, Paul wrote:
Thanks very much Pete. Sorted


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
Conditional Formating copying (Max Min) Excelicious Excel Worksheet Functions 3 April 3rd 08 06:47 PM
copying conditional formating Alpal Excel Worksheet Functions 1 September 28th 07 06:02 PM
copying conditional formating Jorge Excel Discussion (Misc queries) 8 March 29th 07 01:41 PM
Copying print formating jd Excel Discussion (Misc queries) 4 February 7th 07 04:22 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM


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

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

About Us

"It's about Microsoft Excel"