A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional Formatting by percent range



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2010, 03:22 PM posted to microsoft.public.excel.misc
Sandusky[_3_]
external usenet poster
 
Posts: 6
Default Conditional Formatting by percent range

Windows XP Pro SP3
Excel 2007

Suppose cells A1:A10 contain integer values. Now suppose cells B1:B10
also contain integer values. I'd like to conditionally format the
values in column B so that if the value in column B is greater than
100% of the value in column A then the B cell is shaded red. If the
value in column B is greater than or equal to 75% but less than 100%
of the value in column A then the B cell is shaded yellow. If the
value in column B is less than 75% of the value in column A then the B
cell is shaded green. Is this possible?

A B
=============
20 18 -- shaded yellow
50 10 -- shaded green
75 81 -- shaded red
  #2  
Old June 2nd, 2010, 09:24 PM posted to microsoft.public.excel.misc
Tom-S[_2_]
external usenet poster
 
Posts: 68
Default Conditional Formatting by percent range

You can use the Conditional Formatting feature.

Click in target cell (B1), then click FormatConditional Formatting.

Under Condition 1 have 'Cell Values Is', then 'greater than', then =B2, then
click the Format button and on the Patterns tab select the red shade, and
click OK.

Back at the Conditional Formatting dialogue, click Add and a Condition 2
set of boxes appear. Set these to 'Cell Value Is', between, =0.75*B2, and
=B2, then select the yellow shading.

Add again and set Condition 3 as 'Cell Value Is', less than, =0.75*B2,
then select the green shading, and OK twice.

Finally copy cell B1 (Ctrl + C), then highlight cells B2:B10, right click,
select Paste SpecialFormats.

That should do it.

Regards,

Tom



"Sandusky" wrote:

Windows XP Pro SP3
Excel 2007

Suppose cells A1:A10 contain integer values. Now suppose cells B1:B10
also contain integer values. I'd like to conditionally format the
values in column B so that if the value in column B is greater than
100% of the value in column A then the B cell is shaded red. If the
value in column B is greater than or equal to 75% but less than 100%
of the value in column A then the B cell is shaded yellow. If the
value in column B is less than 75% of the value in column A then the B
cell is shaded green. Is this possible?

A B
=============
20 18 -- shaded yellow
50 10 -- shaded green
75 81 -- shaded red
.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:21 AM.


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