+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Conditional Formatting, Font Color Change Based on Date

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Conditional Formatting, Font Color Change Based on Date

    I am creating a bank register using Excel but my bank doesn't always release the funds immediately.
    Can someone tell me how to change the deposit (J20) font color to red if the available date (G20) is before today?

    Thank you.
    Last edited by badaxe; 03-20-2012 at 12:11 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional Formatting, Font Color Change Based on Date

    Hi

    In Conditional formatting of J20, >>Formula is.>>>=G20<TODAY()

    Choose red color>>OK.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    03-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Conditional Formatting, Font Color Change Based on Date

    Register Test.xls

    Okay, so what am I doing wrong?

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Conditional Formatting, Font Color Change Based on Date

    Everything seems OK. Of course if your reference cells are empty in col G, the CF will fire. An empty cell is 0 which is smaller than today.

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Conditional Formatting, Font Color Change Based on Date

    ...Okay, so what am I doing wrong?
    ...G20(in your sample workbook)="".

    So, ""(nothing)) is less than Today(). So J20= red color. This is corect.!!!

  6. #6
    Registered User
    Join Date
    03-12-2012
    Location
    Cyberspace
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Conditional Formatting, Font Color Change Based on Date

    Basically, they're saying you need to account for empty cells.

    Consider using:

    Please Login or Register  to view this content.
    as your formula in the conditional format.

    If the cell is blank, then see if TODAY() is less than TODAY() (it never will be, so the conditional format won't trigger).
    If the cell isn't blank, then see if the date in the G column is less than TODAY(). If it is, trigger the conditional format.

    Attached is the updated spreadsheet to help you see the change.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Conditional Formatting, Font Color Change Based on Date

    Thank you all for your help.

+ 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