+ Reply to Thread
Results 1 to 5 of 5

Highlight a cell when there's a date clash

  1. #1
    Registered User
    Join Date
    10-16-2009
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    59

    Highlight a cell when there's a date clash

    Apologies for the somewhat cryptic title, but I found it difficult to shorten it and still keep it meaningful...

    A friend manages a cottage he and some other people own together.

    Whenever someone wants to use the cottage for a few days he enters the arrival and departure date in two cells in adjacent columns. He normally sorts the columns on the arrival date to prevent scheduling issues. He recently made two mistakes on the same day when he didn't sort the columns.

    Is there a way how either/both cells can be highlighted if either fall within any of the periods in the rows above?

    Thanks a lot!
    Last edited by antonf; 10-20-2009 at 01:54 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Highlight a cell when there's a date clash

    Sure. How depends on the layout of the data. (Hint: Post a workbook.)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    10-16-2009
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    59

    Re: Highlight a cell when there's a date clash

    Sure, attached an example that will hopefully explain the situation.

    It might also be useful if it highlights the previous data the new date(s) clash with

    Yes sorting it will help, but he wants it to be "octogenarian-proof"...
    Attached Files Attached Files
    Last edited by antonf; 10-20-2009 at 12:45 AM. Reason: Correct typo, change attachment

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Highlight a cell when there's a date clash

    In G2 and copy down, =SUMPRODUCT( (D2 < E$1:E1) * (E2 >= D$1:D1)) When the result is non-zero, there's a conflict somewhere above, which you can detrmine by sorting.

    Or you can use that formula for conditional formatting.

  5. #5
    Registered User
    Join Date
    10-16-2009
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    59

    Re: Highlight a cell when there's a date clash

    I'm sure he will appreciate it!

    Thanks a lot!

+ 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