+ Reply to Thread
Results 1 to 7 of 7

Unable to make a cell change colour depending on another cells date.

Hybrid View

rjhardman Unable to make a cell change... 12-04-2015, 11:43 AM
Richard Buttrey Re: Formula Issue!!! 12-04-2015, 11:46 AM
Special-K Re: Formula Issue!!! 12-04-2015, 11:47 AM
mahju Re: Unable to make a cell... 12-04-2015, 12:09 PM
rjhardman Hello, Firstly thank you... 12-09-2015, 04:13 AM
FDibbins Re: Unable to make a cell... 12-09-2015, 10:55 AM
mahju Re: Unable to make a cell... 12-09-2015, 12:13 PM
  1. #1
    Registered User
    Join Date
    12-04-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    2

    Unable to make a cell change colour depending on another cells date.

    Hello, I will try to explain this clearly.

    I am having an issue with a formula.

    I would like a cell to turn from green to red if a date in different cells goes beyond todays date.

    For example, if the date in a cell isn't changed to todays date or a date in the future, a separate cell turns from green to red.

    Does anyone have any tips?

    Kind Regards Robert.
    Last edited by rjhardman; 12-04-2015 at 11:59 AM. Reason: inadequate title

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula Issue!!!

    Hi and welcome to the forum. Unfortunately your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (Since this is your first post I'll change the title for you but please note for the future.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,076

    Re: Formula Issue!!!

    You also need to define "expires"

    Does that mean is before TODAY() or something else?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Unable to make a cell change colour depending on another cells date.

    You may use conditional formatting for this as
    select the cells where date are

    2 rules

    For green
    =if(a1<=today(),true,false)

    For red

    =if(a1>today(),true,false)

    a1 is the current cell of range
    Thanks
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  5. #5
    Registered User
    Join Date
    12-04-2015
    Location
    Oxford, England
    MS-Off Ver
    2010
    Posts
    2
    Quote Originally Posted by mahju View Post
    You may use conditional formatting for this as
    select the cells where date are

    2 rules

    For green
    =if(a1<=today(),true,false)

    For red

    =if(a1>today(),true,false)

    a1 is the current cell of range
    Thanks
    Hello,

    Firstly thank you for your help.

    Would you be able to explain a little further, I am very new to this. Or could you recommend any books if your too busy.

    Am using excel 2010 if that's of any use.

    Kind regards Robert.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,044

    Re: Unable to make a cell change colour depending on another cells date.

    Hi, we3lcome to the forum

    To begin with, the IF() statement is redundant, Conditional Formatting ONLY works on TRUE or FALSE, and a1<=today() will either return a TRUE or FALSWE anyway. Also, if you use regular formatting to make all cells green, you only need 1 rule...

    =a1>today()

    This is simply testing to see if the date in cell A1 greater than today's date. If it is, the CF rule will trigger, if it is not, the rule wont apply
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Unable to make a cell change colour depending on another cells date.

    For using how to use conditional formatting visit this link

    http://www.gcflearnfree.org/excel2010/19/print

    In the 4th step click new rule and then the last option (use a formula ......)

    I think other things will not be to difficult.

    Regards
    Last edited by mahju; 12-09-2015 at 12:18 PM.

+ 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. [SOLVED] IF/ELSE formula with OR/AND issue
    By Doofus1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2014, 11:45 PM
  2. Lookup Formula Issue, Search issue
    By kperitz in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-07-2014, 01:50 PM
  3. Old Formula Issue
    By buffalochaser in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2013, 01:33 PM
  4. Excel 2007 : Formula issue
    By Cypher2301 in forum Excel General
    Replies: 2
    Last Post: 07-06-2012, 07:59 AM
  5. Formula Issue
    By CooperGuy in forum Excel General
    Replies: 1
    Last Post: 01-28-2011, 01:35 PM
  6. Excel 2007 : If then formula issue
    By bjohnsonac in forum Excel General
    Replies: 1
    Last Post: 04-09-2009, 12:56 PM
  7. An issue regarding the formula
    By HuaMin in forum Excel General
    Replies: 2
    Last Post: 12-07-2005, 11:45 AM

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