Calculating the Number of Weekdays Between Two Dates in Excel 2007

Microsoft Excel, Tips & Tricks Add comments

msexceltweak.pngCalculating the difference between two dates is useful in many business scenarios, includ­ing receivables aging, interest calculations, benefits payments, and more. If all you need is the number of days between two dates, you can just subtract one date from another:

=Date1 -Date2

Here, replace Date1 and Date2 with date values (not date strings). Excel returns a positive number if Date1 is larger than Date2; it returns a negative number if Date1 is less than Date2.

Besides the basic date-difference formula, you can use the date functions from earlier in this chapter to perform date-difference calculations. Also, Excel boasts a number of work­sheet functions that enable you to perform more sophisticated operations to determine the difference between two dates. The rest of this section runs through a number of these date-difference formulas and functions.

In many business situations, you need to know the number of workdays between two dates. For example, when calculating the number of days an invoice is past due, it’s often best to exclude weekends and holidays. This is easily done using the NETWORKDAYS() function (read the name as “net workdays”), which returns the number of working days between two dates:

NETWORKDAYS(start_date, end_date[, holidays])

start_date

The starting date (or a string representation of the date).

end_date

The ending date (or a string representation of the date).

holidays

A list of dates to exclude from the calculation. This can be a range of dates or an array constant (that is, a series of date serial numbers or date strings, separated by commas and surrounded by braces, {}).

For example, here’s an expression that returns the number of workdays between December 1, 2007, and January 10, 2008, excluding December 25, 2007 and January 1, 2008:

=NETWORKDAYS(”12/1/2007″, “1/10/2008″, {”12/25/2007″,”1/1/2008″})

Figure 1 shows an update to the accounts receivable worksheet that uses NETWORKDAYS() to calculate the number of workdays that each invoice is past due.

This worksheet calcu­lates the number of workdays that each invoice is past due by using the NETWORK­DAYS()function
Figure 1 This worksheet calcu­lates the number of workdays that each invoice is past due by using the NETWORK­DAYS() function.

Popularity: 4% [?]

Related Post

  • Calculating Break Even Analysis with MS Excel Template
  • Calculating Tiered Bonuses in Excel 2007
  • Calculating the Future Value of an Investment in Excel 2007
  • Converting Mainframe Dates to Excel Dates in Excel 2007
  • Calculating Multiple Solutions to a Formula in Excel 2007
  • Don't Find What You're Looking For? Please Try Here...

    Google
     

    One Response to “Calculating the Number of Weekdays Between Two Dates in Excel 2007”

    1. Natalia Krewson Says:

      Foremost, let me commend your clarity on this subject. I am not an expert on this topic, but after reading your article, my understanding has improved substantially. Please permit me to snatch your rss feed to stay in touch with any upcoming updates. Wholesome job and will offer it on to acquaintances and my fans.

    Leave a Reply

    WP Theme & Icons by N.Design Studio
    Entries RSS Comments RSS Add to Technorati Favorites Log in