+ Reply to Thread
Results 1 to 9 of 9

Get First day of the Month and every Monday of the succeeding weeks within that month

  1. #1
    Registered User
    Join Date
    11-27-2013
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    65

    Get First day of the Month and every Monday of the succeeding weeks within that month

    Seeking help to our gurus here.

    I would like to get the Day1 of the month and every Monday of the succeeding weeks using a formula. I uploaded the a sample with the expected results in column C.
    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,416

    Re: Get First day of the Month and every Monday of the succeeding weeks within that month

    In C2 copied down:

    =IF(DAY(B2)=1,B2,IF(WEEKDAY(B2,2)>1,C1,C1+COUNTIF(C$1:C1,C1)))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,416

    Re: Get First day of the Month and every Monday of the succeeding weeks within that month

    Correction:

    =IF(B1="Date",B2,IF(WEEKDAY(B2,2)>1,C1,C1+COUNTIF(C$1:C1,C1)))

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,900

    Re: Get First day of the Month and every Monday of the succeeding weeks within that month

    ... or

    =MAX(B2-CHOOSE(WEEKDAY(B2,2),0,1,2,3,4,5,6),EOMONTH(B2,-1)+1)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,416

    Re: Get First day of the Month and every Monday of the succeeding weeks within that month

    I like that, Glenn!

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

    Re: Get First day of the Month and every Monday of the succeeding weeks within that month

    Try:

    =MAX(B2-WEEKDAY(B2,2)+1,EOMONTH(B2,-1)+1)

    Or:

    =MAX(FLOOR(B2-2,7)+2,B2-DAY(B2)+1)

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,513

    Re: Get First day of the Month and every Monday of the succeeding weeks within that month

    Try this. In D2 then drag down.

    =MAX(B2-WEEKDAY(B2,2)+1,EOMONTH(B2,-1)+1)
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  8. #8
    Registered User
    Join Date
    11-27-2013
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: Get First day of the Month and every Monday of the succeeding weeks within that month

    Appreciated all your help guys. Thank you!

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,416

    Re: Get First day of the Month and every Monday of the succeeding weeks within that month

    You're welcome!

+ 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. [SOLVED] Find First Monday of the Month
    By Anarchus in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-06-2016, 04:33 AM
  2. Find every Monday in a month using VBA
    By EmmaO91 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2014, 07:32 AM
  3. [SOLVED] Sum from the last Monday of the month previous
    By Berna11 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-17-2013, 03:26 PM
  4. [SOLVED] calculating number of weeks in a month ( jan -Dec 13) starting every monday+display
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-08-2013, 10:01 AM
  5. Excel 2007 : Timeline month/days to month/weeks?
    By Bellaggio1770 in forum Excel General
    Replies: 12
    Last Post: 04-14-2012, 05:09 PM
  6. [SOLVED] Calculating first/last Monday, Tuesday, etc. in a given month in E
    By Rossta in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2006, 09:25 PM
  7. Replies: 1
    Last Post: 04-13-2005, 06:35 PM

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