+ Reply to Thread
Results 1 to 2 of 2

Subtract A Certain Amount of Weeks from Date & Result in Weekday

  1. #1
    Forum Contributor
    Join Date
    08-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    146

    Subtract A Certain Amount of Weeks from Date & Result in Weekday

    Hey All,

    Attached is a sample of data I'm looking to use to generate order dates based on delivery & lead times(in weeks). I will always know when I need a certain line item onsite; column M. I will always know a lead time; column K. I'd like to use column M and subtract the lead times to know when I need to place the order. The lead times can be a single number, a range(in which the higher number will be used), or a few numbers(i.e. 10,6, 15 in which the higher number will be used). I tried to generate a formula in I11(=TEXT(DATE(YEAR(M11),MONTH(M11),DAY(M11))-IF(ISNUMBER(K11),K11,MAX(IF(ISNUMBER(SEARCH("-",K11)),MAX(LEFT(K11,FIND("-",K11)-1),RIGHT(K11,LEN(K11)-FIND("-",K11))),K11)))*7,"MM/dd/yyyy")) but it doesn't work for single numbers. Can anyone help me get it work for almost any case and just select the largest or just use the single number in the cell? I also want to make sure the resulting day is a workday and keep in mind the lead times are weeks in cells of column K.

    Much appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,426

    Re: Subtract A Certain Amount of Weeks from Date & Result in Weekday

    Please try in I11 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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: 5
    Last Post: 05-28-2019, 08:25 AM
  2. How to subtract weeks from a date - based on a condition
    By Excelnew200 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-07-2019, 01:13 PM
  3. [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
  4. [SOLVED] Formula for incrementing Date be a certain amount of weeks?
    By Robster in forum Excel General
    Replies: 3
    Last Post: 07-07-2012, 09:25 AM
  5. Adding weeks to a set weekday date.
    By stovnoge in forum Excel General
    Replies: 1
    Last Post: 10-12-2011, 04:10 AM
  6. Formulas - count the amount of working weeks from a date until present date
    By Andrew_Franklin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2008, 09:23 AM
  7. Formula for amount owing subtract amount paid
    By Taperchart in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-04-2006, 12:55 PM

Tags for this Thread

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