+ Reply to Thread
Results 1 to 5 of 5

I need the color of the cell to change when within 30 days of today's date

  1. #1
    Registered User
    Join Date
    07-14-2010
    Location
    Moses Lake, WA
    MS-Off Ver
    Excel 2003
    Posts
    11

    I need the color of the cell to change when within 30 days of today's date

    I have looked and found many similar posts, but none of them seem to work.

    I am working on a list for my wife; she has the names of foods in the refridgerator in column A, the quantities in column B, and the Expiration Dates in Column C. Row 1 is titles. What I am trying to do is format Column C to where it will turn green if the expiration date is within 30 days, yellow if it is within 15 days, red if it is within 5 days, and black when it has expired. I cannot get any of the formulas to line up; it seems as though random cells are highlighted. Please help?
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-27-2012
    Location
    Alabama
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: I need the color of the cell to change when within 30 days of today's date

    I would recommend conditional formatting. select Conditional Formatting-Highlight cells rule-A Date Occurring.

  3. #3
    Registered User
    Join Date
    08-26-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    58

    Re: I need the color of the cell to change when within 30 days of today's date

    you can use the below for conditional formatting:

    For 15 to 25 day check

    =AND(C2-TODAY()>15,C2-TODAY()<26)


    for 5 day check

    =AND(C2-TODAY()>0,C2-TODAY()<6)

    and for expired date check

    =C2-TODAY()<1

  4. #4
    Registered User
    Join Date
    07-14-2010
    Location
    Moses Lake, WA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: I need the color of the cell to change when within 30 days of today's date

    billstpierre79: Not exactly as specific as I would like, but fantastic in the meantime. Thank you.

    sbehera: I'm definitely a novice, and when I input that formula into the conditional formatting, nothing changes. I'm sure I'm doing it wrong. Can you help?

  5. #5
    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
    52,929

    Re: I need the color of the cell to change when within 30 days of today's date

    sbehera has given you 3 different rules, they each need to entered in CF as a new rule
    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

+ Reply to Thread

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.6.0 RC 1