Excel 2013 - conditional format with dates

Hi
I have a workbook that logs courses people have been on and I type in the date the qualification needs to be renewed. I would like that cell to change colour when it is so many days before the renewal date using the =today() function.
pale yellow - 60 days before renewal date
orange - 30 days before renewal date
red - expired, i.e. today's date is after the renewal date
I have an idea how to do it but I can't seem to get it working exactly the way I want it to.
Thanks.
Viv
Viv Haig

Select the cell or cells. I will assume in the following that A2 is the active cell within the selection.
On the Home tab of the ribbon, click Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula
=AND(A2<>"",A2<TODAY()+60)
Click Format...
Activate the Fill tab.
Click More Colors...
Select pale yellow.
Click OK three times.
Repeat the above steps, but with the formula
=AND(A2<>"",A2<TODAY()+30)
and with orange.
Finally, repeat them again, but with the formula
=AND(A2<>"",A2<TODAY())
and with red.
Regards, Hans Vogelaar (http://www.eileenslounge.com)

Similar Messages

  • Excel 2013 Conditional Formatting problem

    Hello!
    A customer of mine has recently transitioned from Office 2007 to Office 365. This has been a major hurdle for them, and they're still experiencing some issues with things not behaving the way they used to. I'm not an Excel expert, so I have no idea if the
    following issue is some sort of bug or compatibility issue, or if the user is just expecting behavior that isn't going to occur in this version of Excel.
    She has a spreadsheet that she uses to schedule people. She uses conditional formatting to change the color of numbers based on their size. For example, everything less than 2 is red, everything between 2 and 4 is green, etc.
    So, let's say she has two rows that have been formatted already. Then she adds a third row, inputs the data, then highlights the entire row and tries to format it. Once she adds her rules and clicks "Ok", that row is formatted...but rows 1 and
    2 have now been cleared of all formatting. So basically, she can't format things on the go, as she puts them in, she has to format everything at the same time, every time.
    It doesn't happen to every row that has already been formatted. If she has 20 rows that are formatted, sometimes only 2 of them will lose their formatting after she applies her rules to a new row. It's usually the rows that are right next to the new row.
    I have very little experience with Excel conditional formatting, so I don't know what would cause this, or if there's a fix or workaround. Also, I'm not sure if I'm explaining it clearly. Any help or suggestions would be welcome!

    Hi,
    According to your description, this issue seems occur with the special spreadsheet. In my view, it might be more related to the file itself, such as incorrect range with conditional formatting rule, double rule with same cell range or other.
    would you like to send the sample file to me ([email protected])  if possible? I want to test it.
    Regards,
    George Zhao
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click "[email protected]"

  • Conditional format with large data fails and show error as "Selection is too large" in Excel 2007

    I am facing a issue in paste special operation using conditional formats for large data in Excel 2007
    I have uploaded a file at below given location. 
    http://sdrv.ms/1fYC9qE
    The file contains two sheets, Sheet "Data" contains the data on which formats are to be applied and sheet "FormatTables" contains the format tables which contains conditional formating.
    There are two table in "FormatTables" sheet. Both have some conditional formats applied on it. 
    Case 1: 
    1. Select the table range of Table1 i.e $A$2:$AV$2
    2. Copy it
    3. Goto Sheet "Data" 
    4. Select data area i.e $A$1:$AV$20664
    5. Perform a paste special operation on full range and select "Formats" option while performing paste special.
    Result:
    It throws error as "Selection is too large"
    Case 2:
    1. Select the table range of Table2 i.e $A$5:$AV$5
    2. Copy it
    3. Goto Sheet "Data" 
    4. Select data area i.e $A$1:$AV$20664
    5. Perform a paste special operation on full range and select "Formats" option while performing paste special.
    Result:
    Formats get applied successfully.
    Both are the same format tables with same no of column and applied to same data range($A$1:$AV$20664) where one of the case works and another fails.
    The only diffrence is Table1 has appliesTo range($A$2:$T$2) as partial of total table range($A$2:$AV$2) whereas the Table2 has appliesTo range($A$5:$AV$5) same as of its total table range($A$5:$AV$5)
    NOTE : This issue is only in Excel 2007

    Excel 2007 No Supporting formating to take a formatting form another if source table has more then 16000 rows and if you want to do that in more then it then you have ot inset 1 more row in your format table to have 3 rows
    like: A1:AV3
    then try to copy that formating and apply
    Solution Case 1: 
    1.Select the table range of Table1 i.e AV21 and drage it down to one row down
    2. Select the table range of Table1 i.e $A$2:$AV$3
    3. Copy it
    4. Goto Sheet "Data" 
    5. Select data area i.e $A$1:$AV$20664
    6. Perform a paste special operation on full range and select "Formats" option while performing paste special

  • Sharepoint Foundation 2013 - Conditional formatting

    Hey all,
    I'm trying to pull of conditional formatting for the outcome of a "Yes or No" column within a Custom List, however all the searching I have done shows that it seems to have been removed in Sharepoint 2013 without using a Jquery (I'm having problems
    getting my head around Sharepoint 2013 at the moment, dont want to add Jqueries to it as well lol).
    Have I missed something stupidly easy? I have http://www.cdpdev.com/Blog/Post/7/Conditional-Formatting-in-SharePoint-2013 but it seems to be using Sharepoint
    2013 with Sharepoint designer 2010 which I dont really want to have to do as the will be in time handed over the my 'manager' who will self manage and using 2 different pieces of software is kinda out of the question.
    Regards
    JB

    Hey @ITechbrij
    it seems the above post doesn't work for Sharepoint 2013 as I'm getting a syntax error but this maybe due to me not being able to find the formula box so put it into the "Column Validate" section as I'm missing the formula box that is shown in the 2010 screenshots.
    If this is not possible what do you suggest? Going with the Sharepoint designer 2010 approach? As I cant find how to do it in 2013 and wouldn't know where the start with a jquery lol.
    JB

  • Excel 2013 VBA formatting Listbox 2 columns

    Have 2 listbox - Listbox 1 has 9 columns and is populated by Excel Worksheet Range. Listbox 1 shows formats correctly.
    User selects multiple items from Listbox1 and click a command button to inserts into Listbox2. In Listbox2 the 5th column should show data as h:mm but does not it looks like text. Also, in Listbox2 column 9 should be formatted as date mm/dd/yy and it
    is not.
    How do I write the code to format these columns?
    Code for the Command button is below:
    Private Sub CmdInsert_Click()
        Dim IndexRow As Long
        Dim IndexCol As Long
         With ListBox1
             For IndexRow = 0 To .ListCount - 1
                 If .Selected(IndexRow) Then
                     ListBox2.AddItem .List(IndexRow, 0)
                     For IndexCol = 1 To .ColumnCount - 1
                         ListBox2.List(ListBox2.ListCount - 1, IndexCol) = .List(IndexRow, IndexCol)
                         Next
                  End If
             Next
         End With
    Me.ListBox1.MultiSelect = fmMultiSelectSingle
     Me.ListBox1.ListIndex = -1
     Me.ListBox1.MultiSelect = fmMultiSelectMulti

    A listbox displays the text of the cells in its rowsource. But rowsource can only be a block of cells, so your code needs to read the text from the source cells of listbox1.
        With ListBox1
            For IndexRow = 0 To .ListCount - 1
                If .Selected(IndexRow) Then
                    ListBox2.AddItem .List(IndexRow, 0)
                    For IndexCol = 1 To .ColumnCount - 1
                        ListBox2.List(ListBox2.ListCount - 1, IndexCol) = _
                        Range(ListBox1.RowSource).Cells(IndexRow + 1, IndexCol + 1).Text
                    Next
                End If
            Next
        End With

  • Copy/paste style doesn't work for conditional formatting with cell refs

    I created a conditional format on a cell (B3) that compares its value to the value of a cell above it (B2).
    If I 'Copy Style' and paste that style into the cell beside it (C3), the conditional formatting still refers to B2. If I want to do this for a whole row of cells then I have to manually edit the cell reference in the conditional formatting for each cell.
    Anyone else seen this behaviour? It makes me think of going back to Excel.

    Don't know if you'd consider this a 'workaround' or simply a way to do what the OP asks with as little fuss as possible.
    I created a conditional format on a cell (B3) that compares its value to the value of a cell above it (B2).
    If I 'Copy Style' and paste that style into the cell beside it (C3), the conditional formatting still refers to B2...
    The desire is to have each cell in row 3 formatted depending on a comparison with the cell directly above it. If each comparison is the same (eg, Equal to), and the 'true' action for each is the same (eg. Fill with yellow), the following will save some effort:
    Select the whole row, B3:G3 (or further).
    Set the conditional format rule to
          Equal to | B2
    And the action for Fill yellow.
    Click Done.
    With the conditional formatting dialogue still open, select C3. You may also want to move the dialogue window up to just below row 3.
    Repeat these three steps:
    Click on the B2 reference in the dialogue.
    Click on cell C2 in the table.
    Press the right arrow to move the selection to D3.
    Click on the B2 reference in the dialogue.
    Click on cell D2 in the table.
    Press the right arrow to move the selection to E3.
    etc.
    Regards,
    Barry

  • Conditional Formatting between dates usng a different cell

    I need to make it so a cell will change color if the column header is between 2 dates.
    Cell D7 = 05/20/2014
    Cell E7 = 06/20/2014
    Cells F6 - AS6 = 05/19/2014 - 06/27/2014 (column headers)
    Cells F7 - AE7= Random Numbers between 5-100  (for now)
    So if the date in Cell F6 is inbetween D7 and E7 I want the number in cell F7 to change colors. Is this possible without VB?
    Thanks Again!!

    Hi,
    According to your description, I try to make a sample, is this you want?
    If it was, please see the steps:
    Click Home tab>Conditional Formatting >New Rule>Use a formula to determine which cells to format > Add the formula "=AND(F$6>=$D$7,F$6<=$E$7)"
    If I misunderstand something, please upload a sample Excel file through One Drive, I'll try again.
    Regards,
    George Zhao
    TechNet Community Support

  • Conditional Formatting with multiple characteristics in report designer

    Hi,
    I'm trying to build a report with images in conditional formatting for two characteristics (=columns). Each of which can have one of the following three status values:
    1 - green
    2 - yellow
    3 - red
    For each status value i want to show a different image (traffic light). It works fine with only one characteristic. The conditional formatting creates three details rows in the row pattern (one for each status value) and depending on the status value the corresponding details row with the traffic light is shown.
    But if there is more than one characteristic with conditional formatting in the report it only works with a different row for each characteristic value, as the two characteristics belong to different group levels of the row pattern. That means I finally have 2 rows showing the two status values.
    To show them all in one row, which is the goal, I have  put all the conditional formatting definitions (6=3 for each characteristic) into the detail rows of the row pattern.
    But then for one characteristic incorrect images are shown, e.g. although the status value is red, a green traffic light is displayed, because the status value of the other characteristic is green.
    Obviously the conditional formatting only works with the characteristic, for which the details rows in the row pattern have been created.
    Any ideas how I can manage to show all the conditional images in one row?
    Thanks in advance.
    Regards,
    Sven

    Sven,
    your scenario is not supported yet.
    Right now, a conditional format is based on one condition.
    In the future it is planned to allow more conditions to be applied to the rowpattern, using "AND, OR" operators.
    The availability of the feature will be announced via the BI Functional Enhancement List (see BIFAQ)
    regards, karim

  • Converting excel 2013 to pdf with adobe acrobat 9

    I have tried and failed many times to convert an excel 2013 spreadsheet into  a pdf with adobe acrobat 9.
    Is this a compatibility issue, Acrobat 9 needs upgrade?

    If you have Excel 2013, you don't need Acrobat to convert to PDF.
    In Excel, click File > Save As PDF

  • Excel 2013 VBA Compatible with Excel 2010

    Hello,
    I am new at working with VBA and have a question regarding an excel sheet with a VBA macro inserted.
    The sheet was created in Excel 2013 by another user, and my laptop runs Excel 2010.  I get script errors when I run it, however on Excel 2013 it works fine.
    My question is: Is there a way to make Excel 2010 work with Excel 2013 VBA scripts? Perhaps importing the library from Excel 2013 VBA to E-2010?  Or perhaps a way to save a VBA script in E-2013 to be backwards compatible with E-2010?
    Thank you all for your support.

    Open the workbook.
    Select Tools > References...
    The references that are in use have their check box ticked. They are all at the top of the list. Do any of those start with MISSING?
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Conditional formatting with another column in pivot table

    Hi everbody please help me!
    My question is simple.
    On my example I have
    --------------------year1------year2----dif(my calculated item)
    measure1-------100-------50---------50
    measure2-------75-------100---------(-25)
    For measure1;
    I want to make "dif" green if year1 is < 100 and want to make "dif" red if year2 = 100 and etc...
    Is it possible, I tried but could not achive conditional formatting when I use different column then dif...
    Thank you for your help
    Regards,
    Can
    Edited by: canmurt on Dec 27, 2009 9:44 AM

    Thank you for quick answer, but there is no "Admin General privileges" :(
    Do u know anything about first question
    Access to Dashboards
    Access to Answers
    Access to Delivers
    Access to Briefing Books
    Access to Disconnected Analytics
    Access to Administration
    Access to Segments
    Access to Segment
    Access to List Formats
    Access to Metadata Dictionary
    Access to Oracle BI Publisher Enterprise
    Access to Oracle BI for Microsoft Office
    Regards;

  • How to get list data to Excel to create chart with date filter?

    Hi all,
    I have to create chart from a custom list in o365 site. There is one column named "Due Date" in my list. I want only those records whose Due Date is today or gone, I mean Due Date <= Today.
    How can do it?
    I have tried following ways.
    I have tried with REST (OData Data Feed) but not able to use Today's date (I mean dynamic) as filter.
    I have tried by Export to Excel my view and it is working but if I am uploading my excel file to o365 and refreshing data connection, it is showing error and not working.
    NOTE : I cannot user Power BI features like Power Query we have not that licences.
    Thanks,
    Ritesh
    Ritesh Goswami

    Hi Ritesh
    Not sure if I understood you correctly but what about creating a calculated field which has an if condition like
    if([Due Date]<=today(), "past", "future"
    and then just filter the 'past' / 'future' column?
    Kind regards,
    https://www.sharepointbay.com

  • Show days left until reset based on date and condition associated with date

    My question is simlilarly based to the previous discussion https://discussions.apple.com/message/15134714#15134714
    What I need to do is display the number of days until I have to reset a flight condition (FS Column) based on a set number of days (60 days).  I have several colums of information but the two I would use is a Date Column and the FS Column(drop down menu with text for options). I would need to be able to look at certain FS options and use the date associated with it to subtract from 60.
    If FS= "NG" use date associated with it to add 60 days, and then use that date to compare it with today's date to show how many days are left till the 60 day mark.
    So if the last "NG" was Jan 1, 2011 and today was Feb 1, 2011 I would want one cell to show 30 days and another cell to show Mar 2, 2011.
    I need to fly in a certain condition once every 60 days. I want to show how many days left I have until I need to reset that 60 day counter.  Also, I would like to have another cell show the date associated with the day I would need to reset that counter on.
    Unfortunately I am in a limited internet environment so I can not post a picture of my spreadsheet.  Sorry for the over explination, trying to make it as clear as possible first go round.
    Thanks in advance!

    Aron,
    I added a few columns to correlate the conditions and dates. There may be a better way than this brute force approach, but this will work.
    Date
    DS
    FS
    Hrs
    Seat
    Mission ID
    D
    H
    N
    NG
    NS
    Aug 1, 2011
    PI
    D
    1.0
    F
    C
    8/1/11
    Aug 1, 2011
    PI
    N
    0.5
    F
    C
    8/1/11
    Aug 2, 2011
    PI
    D
    0.5
    F
    C
    8/2/11
    Aug 2, 2011
    PI
    NS
    1.4
    F
    C
    8/2/11
    Aug 4, 2011
    PI
    NS
    0.2
    F
    C
    8/4/11
    Aug 12, 2011
    PI
    NG
    1.0
    F
    C
    8/12/11
    Aug 12, 2011
    PI
    NS
    1.2
    F
    C
    8/12/11
    Aug 14, 2011
    PI
    NG
    0.5
    F
    C
    8/14/11
    Aug 14, 2011
    PI
    H
    0.5
    F
    C
    8/14/11
    Aug 14, 2011
    PI
    NS
    0.6
    F
    C
    8/14/11
    Aug 20, 2011
    PI
    NS
    2.1
    F
    C
    8/20/11
    Aug 21, 2011
    PI
    NG
    2.0
    F
    C
    8/21/11
    Aug 22, 2011
    PI
    NG
    1.0
    F
    C
    8/22/11
    Aug 22, 2011
    PI
    NS
    0.4
    F
    C
    8/22/11
    Aug 29, 2011
    PI
    NS
    0.5
    F
    C
    8/29/11
    Then I added a summary table:
    FS Condition
    LastDate
    Plus 60 Days
    Today is Oct 11, 2011
    Alarm
    D
    8/2/11
    10/1/11
    10d
    Overdue
    H
    8/14/11
    10/13/11
    -2d

  • Conditional fields with Data Merge

    I have, what I believe, would be a common question for people using Data Merge in InDesign for business cards.
    I have multiple phone fields, with a small-caps letter to indicate what type (mobile, direct, fax, etc.), i.e.:
    M <<Phone Mobile>>
    D <<Phone Direct>>
    If an employee has only one phone line, how can I make it so that the entire line will be omitted from the final merged doc?
    In the past, I've just gone through the final set and quickly removed extra lines/characters, but I know there's a way!
    Thanks.

    You could also do a find/replace (or, rather two of them if needed) to remove the leading character.
    So for your "D" phone number example, you would do a F/R after the merge like so:
    D <FEFF>\r
    If I remembered the syntax correctly, anyway. It finds the literal 'D' followed by a space, followed by an empty merge field marker, followed by a return. Replace would be with nothing.
    Else consider using a merge product that has the conditional capabilities. Em Software makes one such plug-in. I use Xdata for QuarkXpress a good bit, their InDesign counterpart is called InData.
    Mike

  • Conditional formating based on excel formula

    Hi experts!
    I have a problem with BPC formatting. Under my EVDRE expansion, I inserted a column to validate some data before sending it. The value of this formula can be TRUE or FALSE and it validates each row of the expansion.
    Now, if the value is false, the row or at least some fields of it must turn red so the user knows were are the mistakes.
    I have defined under the format range an entry for the heading to evaluate in rows and in format I create the next conditional formatting:: =$I38 = FALSE ---> background red.
    When I push the refresh button, the format applies to al heading under the expansion, but the conditional format formula changes to =$I1064034 = FALSE
    If I lock the row number, it won't iterate for each row and the format will be based just on one cell instead of one cell per row.
    ¿Any ideas? ¿Other ways to achieve this? I've also tried to format the cell inside the expand and eliminate the entry on the format range but it doesn't expand to the rest of the cells...
    Thanks in advance

    Hi Nilanjan!
    Thanks for the answer, the individual conditional formatting is working fine!
    The reason why it wasn't working the first time was because it's incompatible to do individual conditional formatting with conditional formatting on format range.
    I gues I'll have to do all the formatting on individual cells...
    Thanks agains!

Maybe you are looking for

  • Maverick = Printing Problems

    I recently upgraded my iMac OS to Maverick. Now, whenever I print from Photoshop CS4, the paper just goes trough my Canon Pro-10 printer with no printing whatsoever. It works fine when printing in Preview or Canon's Photoshop add on. It worked great

  • Insert Sub Step in std configuration

    Hi All, I am trying to insert a substep for a standard configuration....it seems that it can not find that view...and give me null pointer message... Are there any particular steps....to follow.... I followed the FPM guide...and added my code to acti

  • IChat Log In Issues

    I can't log into by iChat. I've gone into settings and made sure the password is correct. But I keep getting prompted to enter a password and it kicks me out. Used to work just fine, but about a month ago it started with this issue.i

  • What is the iPad 2's screen refresh rate?

    I don't know what the iPad 2's screen refresh rate is, and I've looked pretty much everywhere. I am looking to develop a 3D system for the iPad 2 or 3, but I can't untill I know the screen refresh rate. Does anybody know?

  • .MOV files not playing video???

    I bought a new JVC GY-HM100U HD camera, this camera saves files in native Final Cut Pro .mov files. When I try to play them back on my Imac or 2 laptops with Quicktime I only get audio files to play. I went down to Apple store and the files played on