Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
KCi
 
Posts: n/a
Default Conditional Formatting

I have a question about conditional formatting. How can I use one condition
to say "make the cell yellow if the number being judged is 15-20 percent
below or 15-20 percent above the target"? I ask how can i use one because
there are two other conditions +- 15%. and +- 20%.

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

depending upon the target, and where the cells are. Assume the target is
100, and the

--

HTH

RP
(remove nothere from the email address if mailing direct)


"KCi" wrote in message
...
I have a question about conditional formatting. How can I use one

condition
to say "make the cell yellow if the number being judged is 15-20 percent
below or 15-20 percent above the target"? I ask how can i use one because
there are two other conditions +- 15%. and +- 20%.



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Try again...

depending upon the target, and where the cells are. Assume the target is
100, and the target cells are A1:A100

Select A1:A100
Menu FormatConditional Formatting
Change condition to Formula Is
Add formula of =AND(A1=100-(100*15%),A1<=100+(100*15%))
Click format, select Pattern and choose a colour
OK
Add condition
repeat with a formula of =AND(A1=100-(100*20%),A1<=100+(100*20%))
OK out


--

HTH

RP
(remove nothere from the email address if mailing direct)


"KCi" wrote in message
...
I have a question about conditional formatting. How can I use one

condition
to say "make the cell yellow if the number being judged is 15-20 percent
below or 15-20 percent above the target"? I ask how can i use one because
there are two other conditions +- 15%. and +- 20%.



  #4   Report Post  
Dave O
 
Posts: n/a
Default

I got this to work with the cell to be tested as A2 and the target in
B2. I entered 75 in A2 and 80 as target in B2.

With the cell pointer on A2, click Format Conditional Formatting.
Set the first condition to "Formula Is" in the drop down, and then
enter =ABS(1-(A2/B2))<=0.15. This checks to see if the test cell is
within +-15% of the target. (I set the format to paint the cell
yellow). Then click the Add button and set condtion 2 to "Formula is"
and enter
=AND(ABS(1-(A2/B2))0.15,ABS(1-(A2/B2))<=0.2)
.... which checks to see if the target is greater than +/-15% but less
than +/-20%. I set the format to paint the cell blue under these
conditions.

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
Losing conditional formatting when saving Eric FD Excel Discussion (Misc queries) 3 January 18th 05 11:42 PM
Copy conditional formatting across multiple rows? Gil Excel Discussion (Misc queries) 1 January 11th 05 11:27 AM
Determine cells that drive conditional formatting? Nicolle K. Excel Discussion (Misc queries) 2 January 7th 05 01:08 AM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM
Adding more than three Conditions to 'Conditional Formatting' David McRitchie Excel Discussion (Misc queries) 1 November 27th 04 06:03 PM


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