Count the number of Saturdays and Sundays in any period in Excel
The following article details how to calculate the number of 7th, Sunday or any day in Excel in many ways.
Example: For the following data table, calculate the number of Saturdays, Sundays, and Mondays.
There are 2 ways to calculate:
Method 1: Use the Weekday () function.
1. Calculate the number of Sundays
- In cell D5 enter the statement as shown. Similar to cop statements for the remaining cells in column D.
- Note: Make a table of corresponding values of the items in the table below. Sunday value = 1 so when comparing "= 1".
2. Calculate the number of days 7
- In cell E5 enter the statement as shown. Here day 7 has value = 7 so compare weekday () with value 7 -> Copy the formula for the remaining cells.
3. Calculate the number of days 2
In cell F5 enter the command as shown. Here the second value of 2 should compare Weekday () with value 2.
Result:
You can open the calendar to check.
Method 2: Use the Int () function.
1. Calculate the number of Sundays
- In cell E5 enter the statement as shown. Sunday here is 1 so subtraction 1.
2. Calculate the number of days 7
- In cell D5 enter the statement as shown. Here Saturday has a value of 7, so subtraction will subtract 7.
3. Calculate the number of days 2
- In cell F5 enter the command as shown. Monday has a value of 2 so subtract 2.
=> Results calculated in 2 ways:
Note: You can calculate the number of days in any order, you just need to change the corresponding value of the item into the formula.
Good luck!
You should read it
- How to calculate the number of days in Excel
- How to count the number of occurrences of a character in Excel
- Round a number in Excel (ROUND function)
- How to calculate and color blank cells in Excel
- Guide to full Excel 2016 (Part 8): Learn about Number Formats
- How to count characters in Excel
- How to display 0 in front of a number in Excel
- How to number Excel pages from any number
May be interested
- The COUNTA function, how to use the function to count cells containing data in Excelthe counta function in excel counts the number of cells containing data, non-empty cells in excel.
- The COUNTIFS function, how to use the cell count function according to multiple events in Excelthe countifs function in excel to count cells satisfies many given conditions.
- Excel counting functions: Count and Countifthe regular processing of data calculations with excel spreadsheets, there will be a lot when you need to use the counting function. count and countif are the 2 most basic counting functions, easy to use but for those who are new to excel, you may not know how to use it.
- DCOUNTA function, how to use the function to count non-empty cells in Exceldcounta functions in excel to count non-empty cells in database fields or lists according to specific conditions.
- Coupdays function - Calculates the number of days in a coupon period and contains the settlement date in Excelthe following article details how to use the coupdays function in excel. function meaning: the coupdays function calculates the number of days in the coupon period and contains the settlement date. syntax: coupdays (settlement, maturity, frequency, [basis]).
- Count the number of characters in the paragraphthis is a quick, accurate way to count characters in word text.
- COUNTBLANK function - Count the number of blank (empty) cells in a selected range or array in Excelthe countblank () function helps to count the number of blank (empty) cells in a selected range or array in excel.
- Have you ever wondered why we count to 3?have you ever wondered why we count to 3? let's find out in the article below!
- How to display 0 in front of a number in Excelusually when we enter a sequence of numbers in excel that has a leading zero, it will disappear. so how to display 0 in the series in excel?
- Instructions for using the COUNTBLANK function in Excelin excel, the countblank function helps users count the number of blank cells in a given data range. this function is useful in checking for missing data, processing reports and statistics. this article will guide you in detail on how to use countblank, with practical examples.