#1   Report Post  
Posted to microsoft.public.excel.misc
PJS PJS is offline
external usenet poster
 
Posts: 23
Default Buisness Days Help

Hi everyone,

I am looking for some help on the following.
On business days (Yes), it would automatically input a value (400) under
Daily Target

Currently, I have a worksheet that looks like the following...

Date Day Business Day Daily Target
12/1/2006 Friday Yes 400
12/2/2006 Saturday No 0
12/3/2006 Sunday No 0
12/4/2006 Monday Yes 400
etc..

Is it possible to automate excel to recognize 12/1/2006 as a business day,
and assign the value of 400 under Daily Target.

If it is possible, can excel recognize holidays as well?
12/25/2006 Monday (Holiday) ~ not a business day?

I am open to any ideas,

thanks,

PJS


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 174
Default Buisness Days Help

You can use the NETWORKDAYS function which is part of Analysis ToolPak addin

[to install TOOLS addins tick Analysis Toolpak box]

Then, assuming your date is in cell A1

=IF(NETWORKDAYS(A1,A1,holidays),"Yes","No")

holidays is a named range where you should list your holiday dates.
Alternatively you can just refer directly to a worksheet range, e.g.

=IF(NETWORKDAYS(A1,A1,C$1:C$10),"Yes","No")

where your holiday dates are listed in C1:C10

alternatively, without using NETWORKDAYS

=IF(AND(ISNA(MATCH(A1,C$1:C$10,0)),WEEKDAY(A1,2)<6 ),"Yes","No")

"PJS" wrote:

Hi everyone,

I am looking for some help on the following.
On business days (Yes), it would automatically input a value (400) under
Daily Target

Currently, I have a worksheet that looks like the following...

Date Day Business Day Daily Target
12/1/2006 Friday Yes 400
12/2/2006 Saturday No 0
12/3/2006 Sunday No 0
12/4/2006 Monday Yes 400
etc..

Is it possible to automate excel to recognize 12/1/2006 as a business day,
and assign the value of 400 under Daily Target.

If it is possible, can excel recognize holidays as well?
12/25/2006 Monday (Holiday) ~ not a business day?

I am open to any ideas,

thanks,

PJS


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
CAn any one solve this problem of days months and years.its urgent plzzzzzzzzzzzz naughtyboy Excel Discussion (Misc queries) 3 August 19th 06 05:45 PM
No. of days split into periods Brian Ferris Excel Discussion (Misc queries) 3 January 31st 06 03:29 PM
Calendar Days and Option Buttons Andy Excel Discussion (Misc queries) 0 January 10th 06 09:50 PM
Working days left in the month compared to previous months qwopzxnm Excel Worksheet Functions 8 October 24th 05 08:00 PM
Vacation Accrual Formula MissNadine Excel Worksheet Functions 0 August 18th 05 04:02 AM


All times are GMT +1. The time now is 09:39 AM.

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

About Us

"It's about Microsoft Excel"