Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default conditional formatting based on a different cell

In column A I have "Date Started" dates. In Column B I have "Date Completed"
Dates. I have conditional formatting already set up to highlight column A
red if it is more than 7 days old, but I want to make a condition for Column
A to be green if there is anything entered in column B.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default conditional formatting based on a different cell

1. Select ColumnA

2. From menu FormatConditional Formatting

3. For Condition1Select 'Formula Is' and enter the below formula
=AND(A1<"",B1="",A1<TODAY()-7)
Click Format ButtonPattern and select your color (say Red)

4. Click on Add button.

5. For Condition2Select 'Formula Is' and enter the below formula
=AND(A1<"",B1<"")
Click Format ButtonPattern and select your color (say Green)

6. Hit OK

If this post helps click Yes
---------------
Jacob Skaria


"Picodillo" wrote:

In column A I have "Date Started" dates. In Column B I have "Date Completed"
Dates. I have conditional formatting already set up to highlight column A
red if it is more than 7 days old, but I want to make a condition for Column
A to be green if there is anything entered in column B.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default conditional formatting based on a different cell

Select col A (with A1 active), then apply CF using Formula Is:
=AND(ISNUMBER($A1),TODAY()-$A17,ISNUMBER(B1),B1=$A1)

The CF expression incorporates the extra care that should be taken when
dealing with dates. The ISNUMBER checks that both cols A and B should only
contain numbers (since real dates are numbers in Excel) and averts spurious
triggers caused by inputs other than numbers (such as text) or by any blank
cells since these are evaluated by Excel as zeros in formulas. The B1=$A1
further ensures that "dates completed" inputs are valid ones, ie these dates
should be greater than (or at least the same as) the corresponding "dates
started" in col A.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Picodillo" wrote:
In column A I have "Date Started" dates. In Column B I have "Date Completed"
Dates. I have conditional formatting already set up to highlight column A
red if it is more than 7 days old, but I want to make a condition for Column
A to be green if there is anything entered in column B.

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, based on a different cell GD Excel Discussion (Misc queries) 1 February 9th 09 09:02 PM
conditional Formatting based on a value in another cell Brian Excel Worksheet Functions 5 February 5th 09 09:38 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting on one cell based on value in another MJatAflac Excel Worksheet Functions 3 November 1st 06 10:29 PM


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