+ Reply to Thread
Results 1 to 8 of 8

Formula to add 21 days to a date and take into account any extensions

  1. #1
    Registered User
    Join Date
    01-13-2020
    Location
    Edinburgh
    MS-Off Ver
    Microsoft 2016
    Posts
    18

    Formula to add 21 days to a date and take into account any extensions

    Hello my Excel Angels,

    I know this will be very basic to you guys however I am stuck with a formula.

    When a letter is sent out the receiver has 21 days to respond however on occasion and extension will be granted.

    I was looking for a formula which I could enter into column G that will add 21 days to the date entered into column E however if there is a figure entered into the same row in Column F then this will be taken into account.

    I think I would like to have the entire row highlight in red if this date is exceeded however I think I can do this will a conditional Formatting Rule.

    Please see an example of my work book attached.

    Thanks in advance.

    Zeus82
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: Formula to add 21 days to a date and take into account any extensions

    =E5+21+F5
    does that work for adding 21 days plus whatever the extension is

    If no name added to the sheet
    then you could use
    =IF(B5="","",E5+28+F5)
    to avoid 1900 dates appearing

    for conditional formatting
    Select the table range
    and use as a formula
    =AND($G5 <> "",$G5 < TODAY())
    Last edited by etaf; 05-21-2020 at 10:00 AM.
    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
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Formula to add 21 days to a date and take into account any extensions

    Formula in G5, copy it down.


    HTML Code: 
    You need ISBLANK to avoid getting incorrect dates when column E is blank.
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  4. #4
    Registered User
    Join Date
    01-13-2020
    Location
    Edinburgh
    MS-Off Ver
    Microsoft 2016
    Posts
    18

    Re: Formula to add 21 days to a date and take into account any extensions

    Hi Etaf & Modytrane,

    I very much appreciate your help with this.

    I was able to get the very basic formula of =G5+21+E5 however if no value in E5 then this wouldnt work and when copying the formula down F column the cells weren't blank.

    Both of the formulas that you have provided work great so thank you so much for your help.

    The formula for conditional formating is great, only think is though that I guess i will need to incorporate an entry where I can enter complete and have the formula take this into account otherwise the rows will remain red for ever. Do you know how I could do this?

    Thanks again.

    Zeus82

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: Formula to add 21 days to a date and take into account any extensions

    where are you putting "Complete"
    =AND($G5 <> "",$G5 < TODAY())
    you could add a condition
    =AND($G5 <> "",$G5 < TODAY(), $Cell <> "complete")
    so Cell is the cell reference you intend to put the word complete into

    =IF(B5="","",E5+21+F5)
    you could change to
    =IF(E5="","", E5+21+F5)

  6. #6
    Registered User
    Join Date
    01-13-2020
    Location
    Edinburgh
    MS-Off Ver
    Microsoft 2016
    Posts
    18

    Re: Formula to add 21 days to a date and take into account any extensions

    Hi Etaf,

    Thank you so much!! That worked perfectly - The spreadsheet now does what I was looking for it to do

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: Formula to add 21 days to a date and take into account any extensions

    you are welcome

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Formula to add 21 days to a date and take into account any extensions

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Replies: 13
    Last Post: 10-15-2022, 12:51 AM
  2. [SOLVED] Date extensions
    By Judylily in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-11-2017, 03:02 PM
  3. [SOLVED] Formula Help: Determine days total from arrival to current date then stop adding days
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2016, 12:45 PM
  4. SLA Status formula taking into account Business Days
    By Chris_Mck in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2015, 06:34 AM
  5. excel formula: days remaining=end date-todays date+extention days
    By fsprings in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-04-2013, 06:45 AM
  6. Excel timesheet formula to account for days worked > 5 and lunch
    By shanecline in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-13-2012, 04:09 PM
  7. Replies: 1
    Last Post: 09-07-2012, 12: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