Step-by-Step Guide: Creating a Workday Function in MS Excel
Step-by-Step Guide: Creating a Workday Function in MS Excel
Quick Links
With Microsoft Excel’s
`NETWORKDAYS`
function, you can count the number of workdays that fall between two specified dates. This function excludes Saturdays, Sundays, and optionally the specified holidays. We’ll show you how to use it.
This function can account for holidays in its calculation, but you must specify those holidays in a column, so be ready with a list of your holiday dates. Also, it’s important you keep in mind that this function counts both the starting date and the ending date in the calculation .
Related: Use Excel to Calculate How Many Days Until an Event
Find the Workdays Between Two Dates in Excel
To get the number of workdays that fall between two dates, first, open your spreadsheet with Microsoft Excel.
In your spreadsheet, click the cell where you want to display the resulting workday number.
In the selected cell, type the following function and press Enter. In the function, replace B2
with the cell that contains the starting date and C2
with the cell containing the ending date.
=NETWORKDAYS(B2,C2)
Excel will calculate the number of workdays between your dates and display the result in the selected cell. Note that this number includes both the starting date and the ending date.
If you’d like to exclude any holidays from your calculation, then first, specify your holidays in a column. Like so:
Click the cell where you want to get the result, type the following function, and press Enter. In this function, replace B2
with the cell that contains the starting date, C2
with the cell that contains the ending date, and E2:E6
with the range where you’ve specified your holidays.
=NETWORKDAYS(B2,C2,E2:E6)
Excel will display the result in your selected cell. Note that this count excludes your specified holidays but includes the starting and the ending date.
And that’s how you can use an Excel function to quickly find the number of days someone has worked between any two dates. Very useful!
Do you want to find the number of full days between two dates in Excel ? If so, there’s a quick way to do that.
Related: How to Find the Number of Days Between Two Dates in Microsoft Excel
Also read:
- [New] 2024 Approved Secure & Spacious Our Compilation of Best 20 Free Cloud Services
- [New] Understanding Your New Reality on Instagram
- 2024 Approved Illusions Unveiled Discerning Genuine Supporters in Digital Platforms
- 無響拡張子MP3でピークレス部分をクリアする手引き
- Achieving Optimal PS5 Security Through Passcode Settings
- AI-Infused Search: Microsoft Bing Redefined
- Discover the Prime Sites for Uploading & Viewing New Releases in Telugu Cinema
- Divine Mother Azna | Free Book
- Download SoundCloud Apps: Compatible Options for Both Mac & Windows Systems
- Easy Steps to Enable and Listen to WMA Audio on Android Smartphones
- Effortless Conversion: Transforming WebM Files Into MOV Format with Simple Methods
- Effortless Guide: Converting Your DVD Riddick Collection Into Multiple Formats with Ease
- Huawei端末における音楽再生の不具合解消ガイド
- PC向けビデオからオーディオへの変換ガイド
- Top-Rated Portable Displays - Comprehensive Reviews & Comparisons
- Unlocking Recmaster's Potential in Screen Capture
- Update Your Printer Now: Step-by-Step Instructions to Get CanoScan LiDE 220 Drivers & Firmware
- お薦めのイヤホンで音声録音機能があるツール
- スムーズに連続した状態でZOOM動画を編集する専門技術
- Title: Step-by-Step Guide: Creating a Workday Function in MS Excel
- Author: David
- Created at : 2025-01-01 16:08:36
- Updated at : 2025-01-06 17:53:45
- Link: https://win11.techidaily.com/step-by-step-guide-creating-a-workday-function-in-ms-excel/
- License: This work is licensed under CC BY-NC-SA 4.0.