#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JR
 
Posts: n/a
Default calculate days

I need to write a formula to calculate the number of week days in a year less
the holidays. Do I have to go through a calendar and count the holidays, or
does Excel have this built in somewhere?
--
JR
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JR
 
Posts: n/a
Default calculate days

Thanks...this will make my project a lot easier! Appreciate the info.
--
JR


"daddylonglegs" wrote:


No, Excel doesn't have inbuilt holidays due to the differences country
to country.

You can use

=NETWORKDAYS(date(2006,1,1),date(2006,12,31))

to count the number of weekdays in 2006 or create a list of holidays
and use

=NETWORKDAYS(date(2006,1,1),date(2006,12,31),holid ays)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=527355


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default calculate days


Hi Curt,

If you want the difference in days between two dates you can use just

=B1-A1

format as general

although to eliminate errors possibly

=IF(A1*B1,IF(A1<B1,B1-A1,""),"")


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=527355

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to calculate number of days & ignore blank cells Mifty Excel Discussion (Misc queries) 7 February 13th 06 10:36 PM
how to calculate a date .. say 34 days from today shaunl Excel Discussion (Misc queries) 5 July 13th 05 02:38 PM
formula to calculate # of days between dates, excluding holidays abs2299 Excel Discussion (Misc queries) 8 March 3rd 05 02:21 AM
how do I calculate the days between dates? stucklady! Excel Discussion (Misc queries) 7 February 12th 05 04:39 PM
HOW TO CALCULATE THE DAYS? Bel Excel Worksheet Functions 2 February 2nd 05 07:05 PM


All times are GMT +1. The time now is 03:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"