Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 76
Default Conditional Formatting with average formula and variance

Hello:

Can somebody please advise how to include a variance in conditional
formating when using average?

i.e. I'd like to highlight cells in red if the average of a range is +/- 2%
of the number (so if H7 is 24% and the average of B7:G7 is 28% the H7 cell
will be in red and if average of B7:G7 is 25%, which is within the 2%
variance the H7 cell will be in green).

Simple average worked (=H7AVERAGE(B7:G7) --- red)....but can't figure out
how to include the variance of 2% up and down from average...

Thank you.

Monika
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Conditional Formatting with average formula and variance

Try

=ABS(H7-AVERAGE(B7:G7))<=2

If this post helps click Yes
---------------
Jacob Skaria


"murkaboris" wrote:

Hello:

Can somebody please advise how to include a variance in conditional
formating when using average?

i.e. I'd like to highlight cells in red if the average of a range is +/- 2%
of the number (so if H7 is 24% and the average of B7:G7 is 28% the H7 cell
will be in red and if average of B7:G7 is 25%, which is within the 2%
variance the H7 cell will be in green).

Simple average worked (=H7AVERAGE(B7:G7) --- red)....but can't figure out
how to include the variance of 2% up and down from average...

Thank you.

Monika

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Conditional Formatting with average formula and variance

shoud be in %

=ABS(H7-AVERAGE(B7:G7))<=2%

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

Try

=ABS(H7-AVERAGE(B7:G7))<=2

If this post helps click Yes
---------------
Jacob Skaria


"murkaboris" wrote:

Hello:

Can somebody please advise how to include a variance in conditional
formating when using average?

i.e. I'd like to highlight cells in red if the average of a range is +/- 2%
of the number (so if H7 is 24% and the average of B7:G7 is 28% the H7 cell
will be in red and if average of B7:G7 is 25%, which is within the 2%
variance the H7 cell will be in green).

Simple average worked (=H7AVERAGE(B7:G7) --- red)....but can't figure out
how to include the variance of 2% up and down from average...

Thank you.

Monika

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 76
Default Conditional Formatting with average formula and variance

Hi Jacob:

It seems to be working. I have to fully populate the rest of the xls but the
test on couple of rows worked.
thank you for your quick response.

Monika

"Jacob Skaria" wrote:

shoud be in %

=ABS(H7-AVERAGE(B7:G7))<=2%

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

Try

=ABS(H7-AVERAGE(B7:G7))<=2

If this post helps click Yes
---------------
Jacob Skaria


"murkaboris" wrote:

Hello:

Can somebody please advise how to include a variance in conditional
formating when using average?

i.e. I'd like to highlight cells in red if the average of a range is +/- 2%
of the number (so if H7 is 24% and the average of B7:G7 is 28% the H7 cell
will be in red and if average of B7:G7 is 25%, which is within the 2%
variance the H7 cell will be in green).

Simple average worked (=H7AVERAGE(B7:G7) --- red)....but can't figure out
how to include the variance of 2% up and down from average...

Thank you.

Monika

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Conditional Formatting with average formula and variance

1. Select the Range (say H1:H100) or column H. Please note that the cell
reference H1 mentioned in the formula is the active cell in the selection.
Active cell will have a white background even after selection

2. From menu FormatConditional Formatting

3. For Condition1Select 'Formula Is' and enter the below formula
=ABS(H1-AVERAGE(B1:G1))<=2%

4. Click Format ButtonPattern and select your color (say Green)
5. Hit OK

PS: If you are using XL2007 Goto Home tabStylesConditional
FormattingManage rulesNew ruleUse a formula to determine which cells to
format. Enter the formula in the box below.

If this post helps click Yes
---------------
Jacob Skaria


"murkaboris" wrote:

Hi Jacob:

It seems to be working. I have to fully populate the rest of the xls but the
test on couple of rows worked.
thank you for your quick response.

Monika

"Jacob Skaria" wrote:

shoud be in %

=ABS(H7-AVERAGE(B7:G7))<=2%

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

Try

=ABS(H7-AVERAGE(B7:G7))<=2

If this post helps click Yes
---------------
Jacob Skaria


"murkaboris" wrote:

Hello:

Can somebody please advise how to include a variance in conditional
formating when using average?

i.e. I'd like to highlight cells in red if the average of a range is +/- 2%
of the number (so if H7 is 24% and the average of B7:G7 is 28% the H7 cell
will be in red and if average of B7:G7 is 25%, which is within the 2%
variance the H7 cell will be in green).

Simple average worked (=H7AVERAGE(B7:G7) --- red)....but can't figure out
how to include the variance of 2% up and down from average...

Thank you.

Monika



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 76
Default Conditional Formatting with average formula and variance

Jacob:

It worked partially. I need it to evaluate the average and if its within 2%
make it green but if its outside of the 2% make it red.

The formula you gave me works if the cell is less than 2% of the average but
not if its more. I removed the "=" sign bcs if its 2% off of the average is
still ok just anythign abover or below. I've tried to change it to the
following but it doesn't work:

=ABS(H27-AVERAGEA(B27:G27))<2%

any ideas?

Thank you
Monika

"Jacob Skaria" wrote:

1. Select the Range (say H1:H100) or column H. Please note that the cell
reference H1 mentioned in the formula is the active cell in the selection.
Active cell will have a white background even after selection

2. From menu FormatConditional Formatting

3. For Condition1Select 'Formula Is' and enter the below formula
=ABS(H1-AVERAGE(B1:G1))<=2%

4. Click Format ButtonPattern and select your color (say Green)
5. Hit OK

PS: If you are using XL2007 Goto Home tabStylesConditional
FormattingManage rulesNew ruleUse a formula to determine which cells to
format. Enter the formula in the box below.

If this post helps click Yes
---------------
Jacob Skaria


"murkaboris" wrote:

Hi Jacob:

It seems to be working. I have to fully populate the rest of the xls but the
test on couple of rows worked.
thank you for your quick response.

Monika

"Jacob Skaria" wrote:

shoud be in %

=ABS(H7-AVERAGE(B7:G7))<=2%

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

Try

=ABS(H7-AVERAGE(B7:G7))<=2

If this post helps click Yes
---------------
Jacob Skaria


"murkaboris" wrote:

Hello:

Can somebody please advise how to include a variance in conditional
formating when using average?

i.e. I'd like to highlight cells in red if the average of a range is +/- 2%
of the number (so if H7 is 24% and the average of B7:G7 is 28% the H7 cell
will be in red and if average of B7:G7 is 25%, which is within the 2%
variance the H7 cell will be in green).

Simple average worked (=H7AVERAGE(B7:G7) --- red)....but can't figure out
how to include the variance of 2% up and down from average...

Thank you.

Monika

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
Weighted Average of Variance TeddieMao Excel Worksheet Functions 0 July 15th 09 08:54 PM
Conditional SUM for Budget, Actuals, & Variance YTD columns [email protected] Excel Worksheet Functions 0 February 27th 07 09:23 PM
Pivot Tables - Variance and Variance % PJS Excel Discussion (Misc queries) 2 January 18th 06 03:12 AM
Percent Variance Formula mdalby Excel Discussion (Misc queries) 1 August 25th 05 05:07 PM
Pivot Tables - Variance and % Variance fields CraigS Excel Discussion (Misc queries) 5 January 6th 05 12:22 AM


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