+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting - Difference between dates

Hybrid View

Gohan51D Conditional Formatting -... 03-13-2006, 05:38 PM
Guest Re: Conditional Formatting -... 03-13-2006, 06:00 PM
Guest Re: Conditional Formatting -... 03-13-2006, 06:15 PM
Guest Re: Conditional Formatting -... 03-13-2006, 06:40 PM
Guest Re: Conditional Formatting -... 03-13-2006, 06:45 PM
Guest Re: Conditional Formatting -... 03-14-2006, 06:10 AM
  1. #1
    Registered User
    Join Date
    03-08-2006
    Posts
    7

    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

  2. #2
    Biff
    Guest

    Re: Conditional Formatting - Difference between dates

    Hi!

    If I understand....

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

    Biff

    "Gohan51D" <Gohan51D.24mnwo_1142286001.8849@excelforum-nospam.com> wrote in
    message news:Gohan51D.24mnwo_1142286001.8849@excelforum-nospam.com...
    >
    > 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. #3
    Paul Lautman
    Guest

    Re: Conditional Formatting - Difference between dates

    Biff wrote:
    > Hi!
    >
    > If I understand....
    >
    > Select cell B1
    > Goto Format>Conditional 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-A1>9))



  4. #4
    Biff
    Guest

    Re: 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" <paul.lautman@btinternet.com> wrote in message
    news:%23AQRrruRGHA.1160@TK2MSFTNGP09.phx.gbl...
    > Biff wrote:
    >> Hi!
    >>
    >> If I understand....
    >>
    >> Select cell B1
    >> Goto Format>Conditional 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-A1>9))
    >




  5. #5
    Paul Lautman
    Guest

    Re: 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" <paul.lautman@btinternet.com> wrote in message
    > news:%23AQRrruRGHA.1160@TK2MSFTNGP09.phx.gbl...
    >> Biff wrote:
    >>> Hi!
    >>>
    >>> If I understand....
    >>>
    >>> Select cell B1
    >>> Goto Format>Conditional 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-A1>9))





  6. #6
    Paul Lautman
    Guest

    Re: 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 Format>Conditional Formatting
    > Formula is: =AND(B1<>"",B1>=A1+4,B1<=A1+8)
    > Click the Format button
    > Select the desired style(s)
    > OK out
    >
    > Biff
    >
    > "Gohan51D" <Gohan51D.24mnwo_1142286001.8849@excelforum-nospam.com>
    > wrote in message
    > news:Gohan51D.24mnwo_1142286001.8849@excelforum-nospam.com...
    >>
    >> 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1