+ Reply to Thread
Results 1 to 6 of 6

Formula Help to Calculate Date based off a Date in another cell

  1. #1
    Registered User
    Join Date
    09-11-2019
    Location
    Michigan
    MS-Off Ver
    360
    Posts
    4

    Formula Help to Calculate Date based off a Date in another cell

    I have a "Ship to Arrive" Column, this column almost always has a manually entered date. The cell is formatted for date. But occasionally it will be Blank or have text like Hold entered into it.

    I have got close but my problem is if Blank or Text not a date I get something like #### etc populating into the destination cell.

    F5 is my 1st "Ship to Arrive" Cell, G5 I would like to auto populate 14 Days prior to what ever date is typed into F5. However if Blank or Random Text "Hold" is entered into F5 I wish
    to see a blank cell in G5 nothing more.

    This formula will be for the entire column in each Row F and G.

    Thanks,
    Last edited by rlfett; 09-18-2019 at 10:50 AM. Reason: Spelling

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Formula Help to Calculate Date based off a Date in another cell

    Try: =if(or(f5="",f5="Hold"),"",G5-14)
    Click the * to say thanks.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Formula Help to Calculate Date based off a Date in another cell

    Quote Originally Posted by PaulM100 View Post
    Try: =if(or(f5="",f5="Hold"),"",G5-14)
    That should be F5-14
    "14 Days prior to what ever date is typed into F5"
    Also the formula is being entered into G5 which would have produced a circular reference.
    So

    in G5
    =if(or(F5="",F5="Hold"),"",F5-14)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Formula Help to Calculate Date based off a Date in another cell

    Good catch, totally missed that as I was typing it.

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Formula Help to Calculate Date based off a Date in another cell

    Oh dear, then I'm not as drunk as I thought I was!

  6. #6
    Registered User
    Join Date
    09-11-2019
    Location
    Michigan
    MS-Off Ver
    360
    Posts
    4

    Re: Formula Help to Calculate Date based off a Date in another cell

    Thanks all for the help! Worked like a charm!

+ 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: 7
    Last Post: 02-02-2017, 02:41 PM
  2. [SOLVED] Formula to automatically return date in correct cell based on date given
    By MichelleD75 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-10-2016, 01:29 PM
  3. Replies: 3
    Last Post: 06-23-2015, 09:56 AM
  4. [SOLVED] Calculate weekday end date based on sum of weekday start date and cell value
    By Rerock in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2014, 09:17 AM
  5. Calculate next due date based on start date frequency and current date
    By ironoverload in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-09-2014, 07:08 AM
  6. [SOLVED] Formula for calculating a new date based on an existing date and other cell criteria
    By scsuflyboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-27-2013, 09:49 AM
  7. [SOLVED] formula to calculate future date from date in cell plus days
    By Chicesq in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-03-2005, 08:30 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