+ Reply to Thread
Results 1 to 2 of 2

How to enable conditional formatting based on if-else condition on 2 previous date cells ?

  1. #1
    Registered User
    Join Date
    10-17-2019
    Location
    Asia
    MS-Off Ver
    2013
    Posts
    1

    How to enable conditional formatting based on if-else condition on 2 previous date cells ?

    Cell A1, C1 always contains a date. Cell B1 contains either a date or NA or maybe empty. If B1 contains date, then I want C1 to become red on 2nd work day onwards after B1. If B1 is empty or contains NA, then I want C1 to become red on 4th work day onwards after A1.

    For example: if A1 = 18/Oct and B1 = 25/Oct, then C1 should become red 29/Oct onwards. if A1 = 18/Oct and B1 = NA, then C1 should become red 24/Oct onwards.

    What codes should I put in conditional formatting? Multiple codes are OK.

    Excel Conditional Formatting.jpg

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: How to enable conditional formatting based on if-else condition on 2 previous date cel

    Use TODAY() as the variable date v.s. the date in the cell when configuring the conditional format, probably two conditions required
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Conditional Formatting based on previous worksheet
    By jedbanger2 in forum Excel General
    Replies: 2
    Last Post: 08-07-2017, 03:32 PM
  2. Replies: 3
    Last Post: 06-08-2017, 07:31 PM
  3. Replies: 3
    Last Post: 08-13-2013, 09:44 AM
  4. Replies: 5
    Last Post: 08-06-2013, 02:13 PM
  5. Conditional Formatting based on text in previous cells
    By avidcat in forum Excel General
    Replies: 3
    Last Post: 07-14-2012, 01:01 PM
  6. Replies: 3
    Last Post: 04-30-2011, 11:46 PM
  7. Replies: 1
    Last Post: 11-15-2005, 04:15 PM

Tags for this Thread

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