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 Multiple Variables in Conditional Formatting with Excel 2003

Need to created a Conditional formatting for the following:

Cells in rows J, R and Z contain data that needs the condition applied to.

Want to format the above cells with the following criteria:
The below is the criteria based on what percentage these values are off of the average value of these 3 cells
-20% to 20% Green
-30% to -20% and 20% to 30% Yellow
Less than -30% and Greater than 30% Red

I am able to perform this conditional formatting on a cell by cell basis with the following:
Condition 1:
Cell Value is Between -1.2*AC2 and 1.2*AC2 is Green
Cell Value is Between -1.2*AC2 and -1.3*AC2 is Yellow
Cell Value is Between 1.2*AC2 and 1.3*AC2 is Yellow
Cell Value is Greater than -1.3*AC2 is Red
Cell Value is Greater than 1.3*AC2 is Red

I want to see if there is a more effective way to do this against all the cells in rows J, R, and Z referenced against the average of the cells in row J, R, and Z data in all the cells in row AC

Example:
Row J Row R Row Z Row AC
12 16 8 12
Green Red Red

Let me know if you need further information and I appreciate any assistance or references you may be able to provide.


Submitted via EggHeadCafe - Software Developer Portal of Choice
How to Get Your Silverlight Pages Indexed By Search Engines
http://www.eggheadcafe.com/tutorials...silverlig.aspx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 257
Default Multiple Variables in Conditional Formatting with Excel 2003

I'd better rephrase this, Lonnie, and see whether I have it right. You have
values in columns J, R and Z, and in each row of AC you have
AVERAGE(J2,R2,Z2). You want to color J, R and Z depending on how far off the
average it is. You don't want a single average for all the rows, ie
AVERAGE(J:J,R:R,Z:Z), but an average for each row.

Here's how I'd do it:

1) Your values in J, R and Z. You already have this.
2) AC2 (we'll use row 2 as our example) =AVERAGE(J2,R2,Z2), copied
throughout the column. You already have this too, I think.
3) Holding down the <Ctl key, click on J, R and Z, thus highlighting the
whole of those three columns.
4) Use Format Cells to color these columns green.
5) With those three columns still highlighted, go to Conditional Formatting.
6) Set the first condition to "Formula Is" and =ABS(Z1)ABS($AC1)*1.3. Make
the format red.
7) Add a second condition and set it to "Formula Is" and
=ABS(Z1)ABS($AC1)*1.2. Make the format yellow.
8) Accept these, then go back to conditional formatting and make sure the
formulae are as you intended (and not with quote marks around them, which is
what often happens to me).
9) If you need to, change back the formatting on the header rows, if any.

If what you were after is a way to set this up without having to do it
cell-by-cell, I think this should do it for you.
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 formatting in excel 2003 Quandary 11 - 3 - 07[_2_] Excel Discussion (Misc queries) 5 March 30th 09 04:11 AM
Conditional Formatting of Checklist with several date variables [email protected] Excel Worksheet Functions 0 September 17th 08 07:29 PM
Conditional formatting with variables ScoobyDoo Excel Worksheet Functions 1 February 22nd 08 06:00 PM
Conditional format and multiple variables jmcclain Excel Worksheet Functions 7 February 8th 08 08:03 PM
Conditional formatting for more than 3 variables Emile Excel Worksheet Functions 8 March 7th 06 04:27 PM


All times are GMT +1. The time now is 06:50 PM.

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"