+ Reply to Thread
Results 1 to 11 of 11

Calculate 60 and 90 day dates

  1. #1
    Registered User
    Join Date
    08-31-2016
    Location
    Illinois, USA
    MS-Off Ver
    2016
    Posts
    6

    Calculate 60 and 90 day dates

    Hello! I am trying to get a formula to calculate when a 60 and 90 day limit is reached. I have 3 columns: one with an start date, one with a formula for 90 days from that start date, and another with the date the item was actually shipped. I need to formulate the second column to turn yellow when the date in it is 60 days from the first column and turn red when it is 90 days from the first column. I have already calculated the second column to turn green when there is a ship date in the third column, but I am having an issue with that one too. For some reason it is skipping a couple of rows and I cannot see any reason why.

    Any help would be appreciated! Thank you so much.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Calculate 60 and 90 day dates

    you need to make sure the range you select and the formula match

    Ie if the range is A5:E200
    then the formula needs to be A5

    Assuning the data starts
    A2, B2, C2
    Start Date , 90 Days Shipped

    So you can use the formula in 90 days column for the RED

    =A2 > today() -60

    otherwise

    Please upload a small clean sample of your data / workbook (not a picture) to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    We would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "Choose File" (top Left corner).
    Find your file, click "Open" click "upload" click 'close windows" Top Right. click "Submit Reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    08-31-2016
    Location
    Illinois, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: Calculate 60 and 90 day dates

    Thank you, but I do not think I explained myself very well...let me try again (I am not very good at this)...

    I need the 60 days to be from the date in the second column, not today's date, would I use the same formula?

    Basically, I have waste that needs to be disposed of within 90 days of the accumulation start date (column B). Column C is formulated to show 90 days from the accumulation start date (column B). I need to change the color of column C to reflect when the waste is getting close to the need to ship date (90 days). So I want to formulate it to turn yellow at 60 days from accumulation date and red at 90 days from accumulation date....

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Calculate 60 and 90 day dates

    accumulation date + 60 is 60 days from that date

    but dont you want to compare to another date to turn yellow like todays() date

    lets say
    accumulation date is
    1/jan/16
    so plus 60days is
    1/mar/16

    so to turn yellow - doesn't the spreadsheet need to know todays() date to say if we are over the 60 days or not?
    and if it is turn yellow

    so A2 + 60 > today()

    which means if today() is passed the 1/3/16
    so turn yellow
    if not dont change colour

  5. #5
    Registered User
    Join Date
    08-31-2016
    Location
    Illinois, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: Calculate 60 and 90 day dates

    Ohhh I see what you are saying now. So I need Column C to be green if column D is filled in with a date, yellow if at 60 days, and red if at 90 days. How do I add all three?

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Calculate 60 and 90 day dates

    three rules in conditional formatting

    Yellow
    = A2 + 60 > today()
    Red
    = A2 + 90 > today()
    Green
    = D2 <>""

    But the range you select depends on what row you want to turn green

    For Green
    Select C:C
    as you have selected the whole column you have to start at row 1
    =D1=""
    NOW that will work OK
    BUT had you selected
    C:D
    you would need a $ to stop the column moving 1 column with the Range
    =$D1=""

    otherwise
    attach the sample as suggested

  7. #7
    Registered User
    Join Date
    08-31-2016
    Location
    Illinois, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: Calculate 60 and 90 day dates

    I have attached an excel file. I placed everything right where it is on my actual spreadsheet.
    Attached Files Attached Files

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,119

    Re: Calculate 60 and 90 day dates

    do you want to add some dates and the colour you want
    with examples for all colours please

  9. #9
    Registered User
    Join Date
    08-31-2016
    Location
    Illinois, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: Calculate 60 and 90 day dates

    It did not save the file when I changed it...let me change it again...
    Last edited by CorieB; 08-31-2016 at 02:44 PM.

  10. #10
    Registered User
    Join Date
    08-31-2016
    Location
    Illinois, USA
    MS-Off Ver
    2016
    Posts
    6

    Re: Calculate 60 and 90 day dates

    Here is the updated sheet. Sorry about that!
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,177

    Re: Calculate 60 and 90 day dates

    Select C:C

    Formula for CF

    Green -> =AND($D3<>"",$D3-$B3<=60)

    Yellow -> =AND($D3-$B3>60,$D3-$B3<=90)

    Red -> =$D3-$B3>90

+ 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) Calculate due dates (Not Invoice due dates)
    By bdg724 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-24-2015, 01:54 PM
  2. [SOLVED] COUNTIFS between 2 dates - how to calculate for blank dates
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-13-2014, 12:03 AM
  3. Replies: 1
    Last Post: 11-01-2012, 03:41 PM
  4. How do I calculate an age from 2 dates?
    By UMMY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  5. How do I calculate an age from 2 dates?
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 02:05 PM
  6. How do I calculate an age from 2 dates?
    By UMMY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. [SOLVED] How do I calculate an age from 2 dates?
    By UMMY in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM

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