Conditional formtting

vij

Board Regular
Joined
Feb 13, 2011
Messages
215
Hi,

Could some one help me with a conditional formatting for the undermentioned condition:

I have data as under in two columns

[TABLE="width: 500"]
<tbody>[TR]
[TD]Individual Average[/TD]
[TD]Team Average[/TD]
[/TR]
[TR]
[TD]00:03:55[/TD]
[TD]00:02:00[/TD]
[/TR]
[TR]
[TD]00:03:55[/TD]
[TD]00:05:00[/TD]
[/TR]
</tbody>[/TABLE]

What I am aiming to achieve is as under
1. If the individual Average is less than Team Average the cell should be filled with Green
2. In case individual average is more than the Team Average the cell should be filled Red

The data is formatted as HH:MM:SS

Using Excel 2010 with Windows &
Thanks.
Vij
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi,

Could some one help me with a conditional formatting for the undermentioned condition:

I have data as under in two columns

[TABLE="width: 500"]
<TBODY>[TR]
[TD]Individual Average
[/TD]
[TD]Team Average
[/TD]
[/TR]
[TR]
[TD]00:03:55
[/TD]
[TD]00:02:00
[/TD]
[/TR]
[TR]
[TD]00:03:55
[/TD]
[TD]00:05:00
[/TD]
[/TR]
</TBODY>[/TABLE]

What I am aiming to achieve is as under
1. If the individual Average is less than Team Average the cell should be filled with Green
2. In case individual average is more than the Team Average the cell should be filled Red

The data is formatted as HH:MM:SS

Using Excel 2010 with Windows &
Thanks.
Vij
Try this...

Let's assume the range to format is A2:A10.

Select the *entire* range A2:A10 starting from cell A2.
Cell A2 will be the active cell. The active cell is the
one cell in the selected range that is not shaded. The
formula will be relative to the active cell.

Goto the Home tab-Styles-Conditional Formatting-Manage rules-
New rule-Use a formula to determine which cells to format

Enter this formula in the box below:

=AND(COUNT(A2:B2)=2,A2 < B2)

Click the Format button
Select the Fill tab
Select a shade of Green
OK
OK
New rule-Use a formula to determine which cells to format
Enter this formula in the box below:

=AND(COUNT(A2:B2)=2,A2>B2)

Click the Format button
Select the Fill tab
Select a shade of Red
OK out
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top