+ Reply to Thread
Results 1 to 13 of 13

cell to indicate 60 months from start date

  1. #1
    Registered User
    Join Date
    03-12-2013
    Location
    London
    MS-Off Ver
    O365
    Posts
    39

    cell to indicate 60 months from start date

    Hi,

    I need your help please. I will try my best to explain what i need.

    At my work i had to create a spreadsheet using excel 2010 to keep a record of individuals training codes and there expiry dates. These dates will expire 60 months or 36 months of start date.

    So I created a spreadsheet with a list of staff names and all they training codes. (That's the easy part).

    This is where i need your help. Is they a way to run a macro or rule in excel, so I only input a start date of a training code and it will automatically highlight that cell red when it reaches 60 months of the date inputted? and the same for 36 months.

    Also if it could highlight yellow 30 months before the 60 months to give a warning that the training needs to be done, and 18 months before 36 months.

    Help Please!

    Many thanks

    Archie

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,879

    Re: cell to indicate 60 months from start date

    Look at this tutorial on conditional formatting

    http://www.techonthenet.com/excel/qu...rmat4_2010.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-12-2013
    Location
    London
    MS-Off Ver
    O365
    Posts
    39

    Re: cell to indicate 60 months from start date

    Hi Alan,

    Thank you for the reply.

    I'll have a look at this.

  4. #4
    Registered User
    Join Date
    03-12-2013
    Location
    London
    MS-Off Ver
    O365
    Posts
    39

    Re: cell to indicate 60 months from start date

    Alan,

    where it has the formula =now()+30 I take is 30 days from now, but what do I need to do if I want 30months from now?

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: cell to indicate 60 months from start date

    Hi

    Use

    Use a conditional format. i.e. if the start date is in A1 then the CF for A1 is

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    for 36 months change the -61 to -37
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Registered User
    Join Date
    03-12-2013
    Location
    London
    MS-Off Ver
    O365
    Posts
    39

    Re: cell to indicate 60 months from start date

    Thanks Richard,

    I'll give that a go.

  7. #7
    Registered User
    Join Date
    03-12-2013
    Location
    London
    MS-Off Ver
    O365
    Posts
    39

    Re: cell to indicate 60 months from start date

    Richard,

    Again thank you for the formula, but whatever I input a date it automatically turns the cell red. What i need is the cell to be clear, just with a date and then when it reaches 30 months it turns yellow and the turns red at 60 months.

    sorry if i am being dump on this..

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: cell to indicate 60 months from start date

    Hi,

    You'll need to upload the workbook so that I can see your request in context and why what you've entered isn't working.

  9. #9
    Registered User
    Join Date
    03-12-2013
    Location
    London
    MS-Off Ver
    O365
    Posts
    39

    Re: cell to indicate 60 months from start date

    could you have a look please.

    i left a comment in cell d20
    Attached Files Attached Files
    Last edited by Archie11; 10-10-2013 at 07:39 AM.

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: cell to indicate 60 months from start date

    Hi,

    Does the attached help?
    I decided in the end to use the DATEDIF() function which Microsoft for some reason known only to themselves have decided not to list it in the normal functions list.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    03-12-2013
    Location
    London
    MS-Off Ver
    O365
    Posts
    39

    Re: cell to indicate 60 months from start date

    Richard,

    your a genius.

    Thank you

  12. #12
    Registered User
    Join Date
    03-12-2013
    Location
    London
    MS-Off Ver
    O365
    Posts
    39

    Re: cell to indicate 60 months from start date

    Sorry Richard can I ask one thing please,

    Is possibly when i put a date into the cell, the cell will turn green first? then run the formula DATEDIF() for 30 months and 60 months.


    many thanks

  13. #13
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: cell to indicate 60 months from start date

    Hi,

    If you mean that the default colour for a cell with a date that is less < 30 months then just add a third CF to cell D10

    =D10>0

    format it as green, apply it to the whole range $D$10:$K:$37, and make sure it's the third CF rule otherwise it will take precedence over the other two.

+ 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. Adding a number of months to a start date to obtain an 'end date'
    By SamURW in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2014, 07:19 PM
  2. Dynamically Filling in Allocation in Months based only on Start Date and End Date
    By Computermoss in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-07-2013, 01:16 PM
  3. [SOLVED] Calculate date based on number of weeks or months after start date
    By wotsup in forum Excel General
    Replies: 3
    Last Post: 08-17-2012, 06:00 AM
  4. Replies: 2
    Last Post: 01-04-2012, 09:15 AM
  5. every 3 months from start date
    By Ed Letniak in forum Excel General
    Replies: 0
    Last Post: 05-21-2005, 02:00 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