+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    02-06-2010
    Location
    North East, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Use date to change font/shade/border

    I'm looking for a formula that will use the =IF(NOW()=DATEVALUE formula to check the current date and highlight a field if the current date is within 7 days of a date entered.

    Example:
    date entered = 12th.
    If current date = 5th - 11th, then highlight = yellow
    If current date = 12th, then highlight = green
    if current date = 13th - 20th, then highlight = red

    Is this even partly possible, and if so, how?

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    5,826

    Re: Use date to change font/shade/border

    Hi,

    Three conditional formats, Green, Yellow and Red in this order using the 'formula' option rather than the cell value option.

    Code:
    =$A$1=TODAY()
    =A1-TODAY()<=7
    =TODAY()-A1<=7
    HTH
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  3. #3
    Registered User
    Join Date
    02-06-2010
    Location
    North East, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Use date to change font/shade/border

    Please excuse me. I'm fairly new to using formulas in Excell.

    Could you explain this in a bit more detail for me?
    I've pasted the code into a field, but that only called back a "false" response.

Thread Information

Users Browsing this Thread

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

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.2.0