Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default If formula control conditional formatting

Hello,

Is it possible to say somehing like... If (This cell)=thrid shift then use
these criterie for the cell...(=5000=Green, Between 4000 and 5000=Yellow,
less then 4000=red), If (This cell = first shift then use other criteria like
(=12000=Green, etc.)
--
Thank you for your time!
John
--
Thank you for your time!
John
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default If formula control conditional formatting

John,

Select the cell with the number (let's say B2). Then use Format / Conditional Formatting.... and
select the "Formula is" option, with a formula like

=IF($A$2="Third Shift",B2=5000,IF($A$2="Second Shift",B2=8000,B2=12000))

where A2 is the cell with "First Shift", "Second Shift", "Third Shift", etc.

If you have a column of "First Shift", "Second Shift", "Third Shift" values, then change $A$2 to
$A2....

I have just guessed, using 5000 as the Third Shift criteria, 8000 the Second Shift, and 12000 the
First Shift....

Format the cell for Green for that condition.

Then for the second condition (yellow) use

=IF($A$2="Third Shift",AND(B2=4000,B2<5000),IF($A$2="Second
Shift",AND(B2=6000,B2<8000),AND(B2=9000,B2<12000 )))

Then for the third conditon (red) use

=IF($A$2="Third Shift",B2<4000,IF($A$2="Second Shift",B2<=6000,B2<=9000))


HTH,
Bernie
MS Excel MVP


"Very Basic User" wrote in message
...
Hello,

Is it possible to say somehing like... If (This cell)=thrid shift then use
these criterie for the cell...(=5000=Green, Between 4000 and 5000=Yellow,
less then 4000=red), If (This cell = first shift then use other criteria like
(=12000=Green, etc.)
--
Thank you for your time!
John
--
Thank you for your time!
John



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 53
Default If formula control conditional formatting

Exactly what I needed to make it work. Thanks!
--
Thank you for your time!
John


"Bernie Deitrick" wrote:

John,

Select the cell with the number (let's say B2). Then use Format / Conditional Formatting.... and
select the "Formula is" option, with a formula like

=IF($A$2="Third Shift",B2=5000,IF($A$2="Second Shift",B2=8000,B2=12000))

where A2 is the cell with "First Shift", "Second Shift", "Third Shift", etc.

If you have a column of "First Shift", "Second Shift", "Third Shift" values, then change $A$2 to
$A2....

I have just guessed, using 5000 as the Third Shift criteria, 8000 the Second Shift, and 12000 the
First Shift....

Format the cell for Green for that condition.

Then for the second condition (yellow) use

=IF($A$2="Third Shift",AND(B2=4000,B2<5000),IF($A$2="Second
Shift",AND(B2=6000,B2<8000),AND(B2=9000,B2<12000 )))

Then for the third conditon (red) use

=IF($A$2="Third Shift",B2<4000,IF($A$2="Second Shift",B2<=6000,B2<=9000))


HTH,
Bernie
MS Excel MVP


"Very Basic User" wrote in message
...
Hello,

Is it possible to say somehing like... If (This cell)=thrid shift then use
these criterie for the cell...(=5000=Green, Between 4000 and 5000=Yellow,
less then 4000=red), If (This cell = first shift then use other criteria like
(=12000=Green, etc.)
--
Thank you for your time!
John
--
Thank you for your time!
John




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 Formula using AND Anton Excel Worksheet Functions 4 October 6th 08 07:23 AM
Conditional formatting formula el_peacock Excel Discussion (Misc queries) 2 August 31st 07 10:21 AM
%formula in conditional formatting k1ngy Excel Worksheet Functions 1 May 7th 07 01:13 AM
conditional formatting with FORMULA... Please HELP! Chris M Excel Discussion (Misc queries) 1 August 20th 05 12:28 AM
conditional formatting with FORMULA... Please HELP! Chris M Excel Discussion (Misc queries) 0 August 18th 05 11:51 PM


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