Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Gohan51D
 
Posts: n/a
Default Conditional Formatting - Difference between dates


If A1 is a date and B1 is a date. B1 is always scheduled to be 7 days
after A1 but can be +/- 2 days. I need to hilight B1 when it is out of
the +/- 2 day window with out hilighting empty cells.

Thanks
Gohan51D


--
Gohan51D
------------------------------------------------------------------------
Gohan51D's Profile: http://www.excelforum.com/member.php...o&userid=32274
View this thread: http://www.excelforum.com/showthread...hreadid=521938

  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Conditional Formatting - Difference between dates

Hi!

If I understand....

Select cell B1
Goto FormatConditional Formatting
Formula is: =AND(B1<"",B1=A1+4,B1<=A1+8)
Click the Format button
Select the desired style(s)
OK out

Biff

"Gohan51D" wrote in
message ...

If A1 is a date and B1 is a date. B1 is always scheduled to be 7 days
after A1 but can be +/- 2 days. I need to hilight B1 when it is out of
the +/- 2 day window with out hilighting empty cells.

Thanks
Gohan51D


--
Gohan51D
------------------------------------------------------------------------
Gohan51D's Profile:
http://www.excelforum.com/member.php...o&userid=32274
View this thread: http://www.excelforum.com/showthread...hreadid=521938



  #3   Report Post  
Posted to microsoft.public.excel.misc
Paul Lautman
 
Posts: n/a
Default Conditional Formatting - Difference between dates

Biff wrote:
Hi!

If I understand....

Select cell B1
Goto FormatConditional Formatting
Formula is: =AND(B1<"",B1=A1+4,B1<=A1+8)
Click the Format button
Select the desired style(s)
OK out

Biff

That highlights cells that are IN the window.

try =AND(NOT(ISBLANK(B1)),OR(B1-A1<5,B1-A19))


  #4   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Conditional Formatting - Difference between dates

If I understand....
That highlights cells that are IN the window.


That must mean that I didn't understand!

Biff

"Paul Lautman" wrote in message
...
Biff wrote:
Hi!

If I understand....

Select cell B1
Goto FormatConditional Formatting
Formula is: =AND(B1<"",B1=A1+4,B1<=A1+8)
Click the Format button
Select the desired style(s)
OK out

Biff

That highlights cells that are IN the window.

try =AND(NOT(ISBLANK(B1)),OR(B1-A1<5,B1-A19))



  #5   Report Post  
Posted to microsoft.public.excel.misc
Paul Lautman
 
Posts: n/a
Default Conditional Formatting - Difference between dates

True, I didn't think of it that way!

Biff wrote:
If I understand....
That highlights cells that are IN the window.


That must mean that I didn't understand!

Biff

"Paul Lautman" wrote in message
...
Biff wrote:
Hi!

If I understand....

Select cell B1
Goto FormatConditional Formatting
Formula is: =AND(B1<"",B1=A1+4,B1<=A1+8)
Click the Format button
Select the desired style(s)
OK out

Biff

That highlights cells that are IN the window.

try =AND(NOT(ISBLANK(B1)),OR(B1-A1<5,B1-A19))






  #6   Report Post  
Posted to microsoft.public.excel.misc
Paul Lautman
 
Posts: n/a
Default Conditional Formatting - Difference between dates

Actually changing your formula to: =NOT(AND(B1="",B1=A1+4,B1<=A1+8))
should work

Biff wrote:
Hi!

If I understand....

Select cell B1
Goto FormatConditional Formatting
Formula is: =AND(B1<"",B1=A1+4,B1<=A1+8)
Click the Format button
Select the desired style(s)
OK out

Biff

"Gohan51D"
wrote in message
...

If A1 is a date and B1 is a date. B1 is always scheduled to be 7
days after A1 but can be +/- 2 days. I need to hilight B1 when it
is out of the +/- 2 day window with out hilighting empty cells.

Thanks
Gohan51D


--
Gohan51D
------------------------------------------------------------------------
Gohan51D's Profile:
http://www.excelforum.com/member.php...o&userid=32274
View this thread:
http://www.excelforum.com/showthread...hreadid=521938




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: "handwritten" circles? UWHusky Excel Discussion (Misc queries) 0 February 25th 06 12:27 AM
Conditional formatting...cont. from 9/25 Guenzak Excel Discussion (Misc queries) 4 September 26th 05 10:55 PM
Conditional Formatting Cell < Today() sagan Excel Worksheet Functions 3 September 21st 05 03:43 PM
Conditional Formatting sweetsue516 Excel Discussion (Misc queries) 7 September 20th 05 08:16 PM
conditional formatting question Deb Excel Discussion (Misc queries) 0 March 23rd 05 02:07 AM


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