If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Calculate Excel Business Days

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-28-11, 09:08
jaq19425 jaq19425 is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
Calculate Excel Business Days

I need to automate a report that requires me to calculate the current business day of the month. For example, today is June 27, so it is the 19th business day of the month. I need it to update everyday itself, and I am stumped. Thanks so much whoever can help!!!
Reply With Quote
  #2 (permalink)  
Old 06-28-11, 10:28
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
Hi,

Either of these formulae will do it, where C3 contains the date in question (eg. 27 June 2011):
Code:
=NETWORKDAYS(EOMONTH(C3,-1)+1,C3)
 
=NETWORKDAYS(DATE(YEAR(C3),MONTH(C3),1),C3)
If you are using Excel 2003 or earlier then the Analysis Toolpak must be installed.

These formulae only take weekends into account. If you want bank holidays to be included then you can - you'll need to define a range where you keep a list of bank holidays and then pass a reference to it into the 3rd, optional parameter of the NETWORKDAYS function.
__________________
Colin

RAD Excel Blog

Other tutorials:
Array Formulas | Deleting Rows with VBA

Last edited by Colin Legg; 06-28-11 at 10:31.
Reply With Quote
  #3 (permalink)  
Old 06-28-11, 15:36
jaq19425 jaq19425 is offline
Registered User
 
Join Date: Jun 2011
Posts: 2
Thanks!!! worked perfectly!
Reply With Quote
Reply

Tags
business days, excel

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On