Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default How to use 2 conditions in conditional formatting

A B C
DATE 1 Supplier DATE 2
12-Nov BTT 10-Nov
12-Nov BCT 11-Nov
13-Nov BTT 12-Nov
11-Nov BLL 13-Nov
11-Nov BCT 4-Nov
16-Nov BTT 12-Nov

In the above list I need to format DATE1 ( A) when SUPPLIER (B)="BTT" AND
DATE1-DATE2 ( A-C)3 USING CONDITIONAL FORMATTING

Should highlight the 1st & 3rd rows of data
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default How to use 2 conditions in conditional formatting

Hi Asoka

1. Select the cell/Range (say A1:C10) so that the active cell is A1. Active
cell will have a white background even after selection. If your selection is
A2:C10 and active cell is in row 2 then the row number mentioned in the
formula should be 2 instead of 1
2. From menu FormatConditional Formatting
3. For Condition1Select 'Formula Is' and enter the below formula
=AND($B1="BTT",$A1-$C13)
4. Click Format ButtonPattern and select your color (say Red)
5. Hit OK

I tried with your sample and only the last row gets highlighted...(not 1 and
3) as only the last row satisfies both conditions

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


"Asoka Walpitagama - Brandix College IT" wrote:

A B C
DATE 1 Supplier DATE 2
12-Nov BTT 10-Nov
12-Nov BCT 11-Nov
13-Nov BTT 12-Nov
11-Nov BLL 13-Nov
11-Nov BCT 4-Nov
16-Nov BTT 12-Nov

In the above list I need to format DATE1 ( A) when SUPPLIER (B)="BTT" AND
DATE1-DATE2 ( A-C)3 USING CONDITIONAL FORMATTING

Should highlight the 1st & 3rd rows of data

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
More than just 3 Conditions for Conditional Formatting? Abdul Excel Discussion (Misc queries) 2 October 17th 08 02:17 AM
conditional formatting 5 conditions james b[_2_] Excel Discussion (Misc queries) 4 June 25th 08 05:29 PM
Conditional Formatting--Need 4 conditions CB Excel Discussion (Misc queries) 6 August 9th 07 01:12 AM
2 conditions using conditional formatting jimar Excel Discussion (Misc queries) 3 March 8th 07 01:24 PM
Conditional formatting wth more than 3 conditions Sue Excel Worksheet Functions 3 August 19th 05 10:26 PM


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