Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to calculate average last N values in a table in Excel
  • Get column index in Excel Table
  • How to calculate correlation coefficient Correlation in Excel
  • How To Remove Duplicates In Excel Column Or Row?
  • What-If Analysis: Scenarios and Goal Seek in Excel

References

  • How to get address of named range in Excel
  • Left Lookup in Excel
  • Get nth match with INDEX / MATCH in Excel
  • How to get relative row numbers in a range in Excel
  • Convert text string to valid reference in Excel using Indirect function

Data Validations

  • Excel Data validation must contain specific text
  • Excel Data validation with conditional list
  • Excel Data validation must not contain
  • Prevent invalid data entering in specific cells
  • Excel Data validation specific characters only

How to calculate nth day of week in month in Excel

by

To get the nth day if week in a month (i.e. the first Tuesday, third Tuesday, forth Thursday, etc.) you can use a formula based on the DAY and WEEKDAY functions.

Formula

=date-DAY(date)+1+n*7-WEEKDAY(date-DAY(date)+8-dow)

Note:  Day of week is abbreviated “dow” in the generic form of the formula. This is a number between 1 (Sunday) and 7 (Saturday) which can be changed as needed.

Worked Example:   Count dates by day of week in Excel

Explanation

In the example shown, the formula in E5 is:

=B5-DAY(B5)+1+D5*7-WEEKDAY(B5-DAY(B5)+8-C5)

How this formula works

First, this formula determines a “start date”. The “first of month” is calculated with the DAY function here:

=B5-DAY(B5)+1

Then  n * 7 days to the first of the month, to get a start date n weeks from the first of the month. In the generic form of the formula, n represents “nth”.

Worked Example:   Sum by weekday in Excel

The next step is to calculate the adjustment required to reach the final result. The adjustment is calculated using WEEKDAY and DAY:

WEEKDAY(B5-DAY(B5)+8-C5)

Inside WEEKDAY, the first of the month is again calculated, then 8 days are added and the value for dow (day of week) is subtracted.

Worked Example:   Conditional formatting gantt chart weekends in Excel

Finally the calculated adjustment is subtracted from original start date to get the final result.

Post navigation

Previous Post:

Get day from date in Excel

Next Post:

Calculate loan interest in given year in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel OR Function
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • How to return blank in place of #DIV/0! error in Excel

Date Time

  • Convert Excel time to decimal minutes
  • Convert date string to date time in Excel
  • Next biweekly payday from date in Excel
  • Count times in a specific range in Excel
  • How to get workdays between dates in Excel

Grouping

  • Map text to numbers in Excel
  • Group times into unequal buckets in Excel
  • How to randomly assign data to groups in Excel
  • If cell contains one of many things in Excel
  • Group arbitrary text values in Excel

General

  • How to Create Calendar in Excel
  • How to calculate decrease by percentage in Excel
  • How to set or clear a print area in Excel Worksheet
  • Find Most Frequently Occurring Word in Excel Worksheet
  • Share Excel data with Word documents
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning