+ Reply to Thread
Results 1 to 14 of 14

Formula to insert multiple dates

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    833

    Formula to insert multiple dates

    Hi all,

    I have a cell in I2 which has a date: 22/05/2021

    How can I write a formula to return the date for the next Monday, Wednesday anD fRIDAY?

    Basically I want the formula to change automatically with the date of the next Monday appearing first, after which the date for the next Wednesday and then the Friday's date., Is this possible?

    Thank you
    Attached Files Attached Files
    Thanks,

    R.



  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Formula to insert multiple dates

    Your date seems to be in cell M2, not I2. This will give you the date for the following Monday:

    =M2+8-WEEKDAY(M2,2)

    for the following Wednesday, just add 2 to the formula (i.e. +2 at the end), and for Friday add 4.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    833

    Re: Formula to insert multiple dates

    Hi Pete_UK thank you. sorry I meant M2.

    OK so there's no way to have this done automatically without manually changing it?

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Formula to insert multiple dates

    I'm not sure what you mean - the 3 formulae will automatically adjust according to the date in M2.

    Pete

  5. #5
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    833

    Re: Formula to insert multiple dates

    Hi Pete.

    This appears to require the manual input of a date each time to update the formula though..

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Formula to insert multiple dates

    Quote Originally Posted by rayted View Post
    ... This appears to require the manual input of a date each time to update the formula though..
    I still don't understand. Perhaps you can put the formula:

    =TODAY()

    in M2, then the other formulae will automatically adjust to give you the next Monday, Wednesday and Friday after today's date (whatever that happens to be).

    Hope this helps.

    Pete

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,656

    Re: Formula to insert multiple dates

    There is nothing in I2 in all sheets.

    Anyway, below formula returns next Monday from date in I2:

    =I2+CHOOSE(WEEKDAY(I2),1,0,6,5,4,3,2)

    Next Wed:
    =I2+CHOOSE(WEEKDAY(I2),1,0,6,5,4,3,2)+2

    Next Fri:
    =I2+CHOOSE(WEEKDAY(I2),1,0,6,5,4,3,2)+4
    Quang PT

  8. #8
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    833

    Re: Formula to insert multiple dates

    Hi bebo021999

    thank you. sorry I meant M2.

    OK so there's no way to have this done automatically without manually changing it? It would be ideal for this to be automatically done

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,656

    Re: Formula to insert multiple dates

    Quote Originally Posted by rayted View Post
    OK so there's no way to have this done automatically without manually changing it? It would be ideal for this to be automatically done
    Do you mean +0,+2,+4 is dynamic in single formula? It is possile, if you can point out from M2, which cells for next Mon, Wed and Fri?

  10. #10
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    833

    Re: Formula to insert multiple dates

    Hi bebo21999 yes please so let's say cell M2 (actions tab) should be where the date is input:

    I have written 21/05/2021

    I now want the formula to return the date for Monday 24th May, then automatically it should show Wednesday 26th may then friday 28th may

    thank you

  11. #11
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    833

    Re: Formula to insert multiple dates

    What if I happen to list the dates in a tab and then have a formula return the relevant value.. could that work?

  12. #12
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Formula to insert multiple dates

    Maybe try

    =WORKDAY.INTL(M2,1,"0101011")
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    833

    Re: Formula to insert multiple dates

    Hi Bo_Ry

    you have the right dates, but I want the figure to change in M2 to show the dates for each upcoming Monday, Wednesday or Friday... unsure if this is possible? so right now M2 would have the date for Monday 24th May, AFTER which it should change to wed 26th May, and so on

  14. #14
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Formula to insert multiple dates

    Maybe
    =WORKDAY.INTL(TODAY(),1,"0101011")

+ 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: 3
    Last Post: 11-29-2019, 04:58 AM
  2. formula to insert certain numbers and dates
    By c_spooner1999 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-31-2015, 03:15 PM
  3. [SOLVED] Calendar Macro to insert multiple dates within the same cell
    By clprdctn in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-07-2014, 03:52 PM
  4. Replies: 1
    Last Post: 06-14-2014, 02:01 AM
  5. [SOLVED] Macro that can grab dates within a parameterized list and insert rows with those dates
    By UMBiii in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-12-2014, 09:14 AM
  6. Replies: 1
    Last Post: 02-02-2013, 02:28 PM
  7. Replies: 0
    Last Post: 11-08-2012, 01:07 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