+ Reply to Thread
Results 1 to 5 of 5

Issues with conditional formatting. Formulas not working/not using the right formula

  1. #1
    Registered User
    Join Date
    02-09-2016
    Location
    Portland
    MS-Off Ver
    2007
    Posts
    2

    Issues with conditional formatting. Formulas not working/not using the right formula

    Hello all

    I'm sure this has been answered somewhere in this forum and I've scoured other forums but nothing seems to be working for me.

    I'm trying to use conditional formatting to highlight a cell when I hit a certain date range but the formulas I've found aren't working, or I'm not using them correctly.

    At my job, we have paperwork that needs to be updated every 3 months for each individual. I have a column that has the most recent date of the paperwork and another column with the expiry date of the paperwork. What I'm trying to do is to have the cell for the expiry date be green when it's new, so date of the document <=60 days from completion, yellow when it's >=61 days up to 89 days, and then red when it hits the expiry date (90 days) and beyond. All the formulas I'm finding use TODAY but I need it to pull from the document completion date and the expiry date.


    So for example, if the document was completed on 01/01/2015 the expiry date would be 04/01/2015. I would want the cell to be green from 01/01/2015 until 03/01/2015, then yellow from 03/02/2015 to 03/31/2015, then red on 04/01/2015 and remain red until I enter in a new date. (obviously, give or take some days, not every month is 30 days!)

    I hope what I'm asking for makes sense. What I've tried so far hasn't been working. Either all the cells will just be red (whether or not they're expired) or the cells won't change colour at all (even though I have formatted a colour).

    If anyone could help, that would be great.

    Thanks.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Issues with conditional formatting. Formulas not working/not using the right formula

    Hi qkeeks and welcome to the forum,

    See if this web page helps answer your question.

    http://spreadsheets.about.com/od/Exc...te-Formula.htm

    If not then please post a sample workbook to show us what you have. To attach a sample, click on "Go Advanced" and then on the Paper Clip Icon above the advanced message area.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    02-09-2016
    Location
    Portland
    MS-Off Ver
    2007
    Posts
    2

    Re: Issues with conditional formatting. Formulas not working/not using the right formula

    I've attached an idea of what the spreadsheet looks. I'm trying to have the cells (F column) change colour based on time left between column F and column E. I looked at the webpage and that's what I had been using. The cells aren't changing colours properly and if I change the dates then the cells go blank entirely. I'm sure I'm doing something incorrectly but I can't figure out what.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Issues with conditional formatting. Formulas not working/not using the right formula

    Try these conditional formatting rules: =F2>TODAY()+31 (Green) ; =F2<=TODAY()+31 (Yellow) ; =F2<=TODAY() (Red). I also suggest using the following formula to populate column F:
    Please Login or Register  to view this content.
    Here is a copy of your file with the CF rules and formula applied:
    Copy of sample workbook-2.xlsx
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,458

    Re: Issues with conditional formatting. Formulas not working/not using the right formula

    Quote Originally Posted by JeteMc View Post
    Please Login or Register  to view this content.
    Here is a copy of your file with the CF rules and formula applied:
    Attachment 446847
    If E2=30-Nov-2015, result is 01-Mar-2016

    Other formula:
    =EDATE(E2,3)

    If E2=30-Nov-2015, result is 29-Feb-2016

    Just FYI.
    Quang PT

+ 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] Conditional Formatting Not Working With Formula
    By markd038 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-28-2014, 04:05 AM
  2. Replies: 3
    Last Post: 11-28-2013, 02:11 AM
  3. Replies: 4
    Last Post: 01-19-2012, 06:56 AM
  4. Replies: 6
    Last Post: 04-29-2011, 09:11 AM
  5. Replies: 1
    Last Post: 02-26-2011, 10:02 PM
  6. using a formula in conditional formatting not working
    By missmischa in forum Excel General
    Replies: 4
    Last Post: 02-22-2010, 06:04 PM
  7. Conditional formatting and formulas not working
    By mshain81 in forum Excel General
    Replies: 6
    Last Post: 02-03-2010, 02:04 PM

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