Consulting

Results 1 to 5 of 5

Thread: Excel CF help

  1. #1
    VBAX Contributor
    Joined
    Nov 2014
    Posts
    121
    Location

    Post Excel CF help

    Excel CF help
    Could you please help me with the CF formula which will change the color of the cell whenever the date is changed to 7 days after the applied date?
    Say in the attached sample the date in column A is 17th March and it will be fixed throughout the column A. In case if someone changes the date to 25th March or above, it should change the cell color. Till the date 24th it should not change it color and from 25th and above change the color of the cell
    Regards,
    JD
    Attached Files Attached Files

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    Try using a formula that results in a boolean, true or false, value for A2 in some other cell. Copy the formula down and you should get True and False. Now add the relative addressed formula for A2 in the conditional format of A2.

    e.g.
    Choose the last option of Conditional Formating for a formula in A2 as:
    =A2>DATE(2015,3,17)+7
    Set the format for when that is true to implement.

    I generally do that for one cell, copy it, and the use the Formatting option in Paste Special to format the other cells the same. The key is using absolute or relative cell addressing to suit.

  3. #3
    VBAX Contributor
    Joined
    Nov 2014
    Posts
    121
    Location
    Hi Kenneth

    Thanks for the formula. It really worked!

    Regards,
    JD

  4. #4
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,059
    Location
    SinceK Kenneth has provided a solution, would you mind going to the Thread tools dropdown and marking the solution as solved?
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  5. #5
    VBAX Contributor
    Joined
    Nov 2014
    Posts
    121
    Location
    Hi Aussie

    Sorry for missing this out.

    Regards,
    JD

Posting Permissions

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