+ Reply to Thread
Results 1 to 12 of 12

Formatting a due date based on the day of the week

  1. #1
    Registered User
    Join Date
    05-28-2015
    Location
    Flint, MI
    MS-Off Ver
    2007
    Posts
    6

    Formatting a due date based on the day of the week

    What I am looking for is a way to say for example: "It's monday, this file is due to be input on Thursdays, Thursday's date is ##/##/##, therefore this is due on that date." But I don't need this just for Monday, I need it to determine the day of the week, compare it to Thursday and if it is "Less Than Thursday" to output Thursday's date.

    What do you think?

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

    Re: Formatting a due date based on the day of the week

    =IF(WEEKDAY(TODAY())<5,"It's "&TEXT(TODAY(),"dddd")&", this file is due to be input on Thursdays, Thursday's date is "&TEXT(TODAY()+(5-WEEKDAY(TODAY())),"dd/mm/yy")&" therefore this is due on that date","")
    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.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Formatting a due date based on the day of the week

    Perhaps =A1+7-WEEKDAY(A1+2). It will return the next Thursday or Thursday if it is A1

  4. #4
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Winterville, NC
    MS-Off Ver
    Excel 2013
    Posts
    141

    Re: Formatting a due date based on the day of the week

    I was a little confused on what you want...here's a sample to get us started. The formula I came up with was:
    =IF(WEEKDAY(A2,1)<5,WORKDAY(A2,WEEKDAY(B2,1)-WEEKDAY(A2,1)),WORKDAY(A2,WEEKDAY(B2,1)-WEEKDAY(A2,1))+7)
    but I may have made it harder than it had to be

    Check out the spreadsheet. You'd only need to change cell A2 if it's due on Thursday. If it's due on a different day of the week, put a date into cell B2 that is on that day of the week (the date itself doesn't matter):Test.xlsx


    If this post was helpful or at least brought a smile to your face , please click the Add Reputation button as a way to say thank you!!!!!!

  5. #5
    Registered User
    Join Date
    05-28-2015
    Location
    Flint, MI
    MS-Off Ver
    2007
    Posts
    6

    Re: Formatting a due date based on the day of the week

    Quote Originally Posted by Pepe Le Mokko View Post
    Perhaps =A1+7-WEEKDAY(A1+2). It will return the next Thursday or Thursday if it is A1
    This is really close to what I am looking for, the only thing is it returns 6/4/2015 if the date is 6/4/2015, but I need it to return 6/11/2015 if the date is 6/4/2015. Does that make sense?

  6. #6
    Registered User
    Join Date
    05-28-2015
    Location
    Flint, MI
    MS-Off Ver
    2007
    Posts
    6

    Re: Formatting a due date based on the day of the week

    Quote Originally Posted by Pepe Le Mokko View Post
    Perhaps =A1+7-WEEKDAY(A1+2). It will return the next Thursday or Thursday if it is A1
    This is really close to what I am looking for, the only thing is it returns 6/4/2015 if the date is 6/4/2015, but I need it to return 6/11/2015 if the date is 6/4/2015. Does that make sense?

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formatting a due date based on the day of the week

    attach a sample excel file with expected formatting
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  8. #8
    Registered User
    Join Date
    05-28-2015
    Location
    Flint, MI
    MS-Off Ver
    2007
    Posts
    6

    Re: Formatting a due date based on the day of the week

    Quote Originally Posted by nflsales View Post
    attach a sample excel file with expected formatting
    Not sure exactly what you mean. Sorry I am really new to excel.

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formatting a due date based on the day of the week

    Pls attach a sample excel file with your requirment

  10. #10
    Registered User
    Join Date
    05-28-2015
    Location
    Flint, MI
    MS-Off Ver
    2007
    Posts
    6

    Re: Formatting a due date based on the day of the week

    example.xlsx
    Not sure this is what you're asking for. I can vocalize what I want, but beyond that I am incapable.

  11. #11
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Formatting a due date based on the day of the week

    Perhaps =A1+8-WEEKDAY(A1+3)

  12. #12
    Registered User
    Join Date
    05-28-2015
    Location
    Flint, MI
    MS-Off Ver
    2007
    Posts
    6

    Re: Formatting a due date based on the day of the week

    Quote Originally Posted by Pepe Le Mokko View Post
    Perhaps =A1+8-WEEKDAY(A1+3)
    Perfect! Thank you so much for the help!
    If you have the time, mind explaining why exactly that works? I understand the math I suppose, but it is beyond me how that works. I am very interested.

+ 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. Conditional formatting based on text ( week days)
    By gfmout in forum Excel General
    Replies: 4
    Last Post: 12-16-2013, 03:34 PM
  2. sum week to date values based on todays date
    By nicko54 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-19-2013, 07:48 PM
  3. week start date and end date based on week number
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2009, 12:39 PM
  4. [SOLVED] Finding the Monday date based on a different date in same week
    By dandiehl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-11-2006, 01:10 PM
  5. [SOLVED] Calculating a Date Based on Year, Week Number and Day of the Week
    By amy in forum Tips and Tutorials
    Replies: 1
    Last Post: 08-23-2005, 11:42 AM

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