Skip to playerSkip to main content
Learn how to find the first Sunday of any month.

Finding the first Sunday of the month involves determining the day of the week for the first day of the month and then calculating the number of days needed to reach Sunday. To calculate Sundays in a month, one can count the number of occurrences of a specific weekday or use formulas to determine the total instances within the month. To find the first day of the month from a month name, one needs to map each month to its corresponding starting day and identify the specific day based on the given month. In Excel, the formula for obtaining the first day of the month involves using the DATE function, such as "=DATE(YEAR(A1), MONTH(A1), 1)," where A1 contains the date in question. This formula constructs a new date with the same year and month but sets the day to 1, providing the desired result.


=DATE(YEAR(A2),MONTH(A2), 1 + (7 - WEEKDAY(DATE(YEAR(A2), MONTH(A2), 1), 2)))

=TEXT(C2,"dddd")


1) DATE(year, month, 1): This creates a date for the first day of the specified month.
2) WEEKDAY(..., 2): This returns the day of the week for the specified date, where Monday is considered the first day of the week (resulting in values 1 to 7).
3) (7 - WEEKDAY(..., 2)): This calculates the number of days needed to reach the next Sunday.
4) 1 + (7 - WEEKDAY(..., 2)): This adds the calculated days to the first day of the month to get the date of the first Sunday.

How do you find the first Sunday of the month?,How do you calculate Sundays in a month?,How do you find the first day of the month from a month name?,What is the formula for the first of the month in Excel?,

Check out my complete suite of Microsoft Excel Tips and Tricks.
https://www.youtube.com/@jjnet247/shorts
https://www.tiktok.com/@exceltips247
https://www.instagram.com/exceltips247/
https://www.dailymotion.com/ExcelTips247
https://www.pinterest.com/ExcelTips247/excel-tips-and-tricks/
https://x.com/ExcelTips247/media
https://www.reddit.com/r/Excel247/
https://www.facebook.com/XyberneticsInc/reels/

#microsoft #excel #tips #tipsandtricks #microsoftexcel #accounting #fyp #fypシ #exceltips #exceltricks

Category

📚
Learning
Transcript
00:00A few moments ago someone came to my desk and he asked me how do you calculate the date of
00:04the
00:05first Sunday of any given month? Well my wheels in the head started turning. I had to find out.
00:11So this is how I do it. So this is the date you want to find the first Sunday of
00:15this month and
00:16the year. The first thing I have to do is to create a date so that it can reflect the
00:20first
00:20of that month and after that get the weekday using the weekday function and the second argument on
00:26the weekday would be 2 to indicate Monday as the first day of the week and after that you're going
00:31to say 7 minus the weekday to indicate number of days for Sunday to come which is going to return
00:37a value of 6. Now all you have to do is to convert this into date using a date function.
00:43The first
00:43argument would be the year followed by month as a second argument and the third argument being the
00:48date you're going to plus 1 because you're going to have to compensate for the first day of the month
00:52and then after that close parenthesis and hit enter and as a test we can use a test function
00:57to get the day of the week for this date.
Comments

Recommended