+ Reply to Thread
Results 1 to 8 of 8

Find first Monday from a list of dates

  1. #1
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Find first Monday from a list of dates

    Good morning

    I have a large report that I receive which contains dates over anywhere up to a 5-6 week period, and the dates will vary every time I receive it including the first date of any data.

    I want to cut it so I am reporting from the first Monday included, and then moving forward for a 4 week period.

    I am looking for a formula that can give the first Monday, regardless of which day of week is the minimum in the data (ie if the very first date of any data is a Thursday, it needs to return the following Monday. If the first date is a Monday it returns that value).

    Any help would be greatly appreciated.

    A sample sheet is attached.
    Attached Files Attached Files
    Handy things to keep in mind:

    Click *, if my suggestion has helped you
    If your problem is solved, then please mark the thread as SOLVED

    Sharing is Caring .... spread the knowledge

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,911

    Re: Find first Monday from a list of dates

    Try this ...

    =WORKDAY.INTL(E1+1,-1,"0111111")

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

    Re: Find first Monday from a list of dates

    First Monday of data range:

    =MIN(A2:A140)+CHOOSE(WEEKDAY(MIN(A2:A140)),6,0,1,2,3,4,5)

    First Monday of the very first date:

    =A2+CHOOSE(WEEKDAY(A2),6,0,1,2,3,4,5)
    Quang PT

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Find first Monday from a list of dates

    If A2 = 5/25/2017 and somewhere below there is a Monday date:
    =INDEX(A:A,MATCH(2,WEEKDAY(A:A),0))
    if Monday is the 2nd day of the week.
    Ben Van Johnson

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Find first Monday from a list of dates

    Or this:
    =MIN(IF(WEEKDAY(A2:A140)=2,A2:A140))

    OOPS, forgot to say "This is an ARRAY FORMULA". You must press CTRL + SHIFT + ENTER after pasting it in.

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 05-10-2017 at 01:50 AM.

  6. #6
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Re: Find first Monday from a list of dates

    Thank you ... the 2nd option worked how I need it.

    May I ask how the choose function works. I have not used it before and like to learn, not just ask for a solution.

    I can see it relates to days of week, but not sure how it "chooses".

    Thanks in advance
    Darren

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Find first Monday from a list of dates

    Weekday() returns the number 1 - 7 of the day of the week of a date, Sun = 1. Choose picks the item in that position in the following list. E.g., Wed = 4, so choose returns the number in the 4th position (i.e., 2)

  8. #8
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Find first Monday from a list of dates

    Quote Originally Posted by bebo021999 View Post
    first monday of data range:

    =MIN(A2:A140)+CHOOSE(WEEKDAY(MIN(A2:A140)),6,0,1,2,3,4,5)

    first monday of the very first date:

    =a2+choose(weekday(a2),6,0,1,2,3,4,5)
    To get the first Monday following the earliest date, shouldn't this be?:
    =MIN(A2:A140)+CHOOSE(WEEKDAY(MIN(A2:A140)),1,0,6,5,4,3,2)
    Last edited by leelnich; 05-10-2017 at 02:00 AM.

+ 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: 12
    Last Post: 06-13-2014, 05:03 PM
  2. [SOLVED] Formula to find missing dates from a list of dates
    By PWinkz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-22-2014, 08:11 AM
  3. [SOLVED] Find monday preceeding given-date unless date is a monday
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-10-2012, 07:42 AM
  4. [SOLVED] Populate only Monday through Saturday Dates
    By greggatz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-27-2012, 01:29 PM
  5. Getting the first monday of a year from a list of dates
    By thewrathful in forum Excel General
    Replies: 3
    Last Post: 03-24-2010, 12:21 PM
  6. Find last monday in May
    By DKY in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-14-2008, 08:54 PM
  7. [SOLVED] Picking every monday from a list of dates
    By Arne Hegefors in forum Excel General
    Replies: 6
    Last Post: 08-03-2006, 11:05 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