#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jk jk is offline
external usenet poster
 
Posts: 109
Default networkdays

I could use some help with the NETWORKDAYS function in Excel.
First, I want the formula to calculate the number of work-days between two
dates and subtract the holiday's I have hidden in another worksheet. Then, I
want it to subtract two other cells (vacation days, sickdays).

This is what I have:
=NETWORKDAYS(DateFrom,WeekEnd, Holiday)-J12-J13

Lastly, I would like to incorporate the IF ISERROR into the formula so that
anyone using this template without the Analysis ToolPak Addin installed
receives TRUE or FALSE instead of #NAME. That way, I could use a conditional
format to change the font to white if true or false is displayed. For some
reason that doesn't work with #NAME.

Thanks!!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default networkdays

=IF(ISERROR(NETWORKDAYS(DateFrom,WeekEnd, _
Holiday-J12-J13)),"False", _
NETWORKDAYS(DateFrom,WeekEnd, Holiday)-J12-J13)

This is one continuos statement but I broke it up to accomodate the line
breaks caused by this msg setup.
--
Pops Jackson


"JK" wrote:

I could use some help with the NETWORKDAYS function in Excel.
First, I want the formula to calculate the number of work-days between two
dates and subtract the holiday's I have hidden in another worksheet. Then, I
want it to subtract two other cells (vacation days, sickdays).

This is what I have:
=NETWORKDAYS(DateFrom,WeekEnd, Holiday)-J12-J13

Lastly, I would like to incorporate the IF ISERROR into the formula so that
anyone using this template without the Analysis ToolPak Addin installed
receives TRUE or FALSE instead of #NAME. That way, I could use a conditional
format to change the font to white if true or false is displayed. For some
reason that doesn't work with #NAME.

Thanks!!!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default networkdays

=NETWORKDAYS(DateFrom,WeekEnd, Holiday)-J12-J13

Is there a problem with the formula? What's in J12 and J13?

You don't need to use conditional formatting to do that. You can use an
error trap directly in the formula that will leave the cell blank:

=IF(ISERROR(NETWORKDAYS(DateFrom,WeekEnd,
Holiday)-J12-J13),"",NETWORKDAYS(DateFrom,WeekEnd, Holiday)-J12-J13)

Biff

"JK" wrote in message
...
I could use some help with the NETWORKDAYS function in Excel.
First, I want the formula to calculate the number of work-days between two
dates and subtract the holiday's I have hidden in another worksheet. Then,
I
want it to subtract two other cells (vacation days, sickdays).

This is what I have:
=NETWORKDAYS(DateFrom,WeekEnd, Holiday)-J12-J13

Lastly, I would like to incorporate the IF ISERROR into the formula so
that
anyone using this template without the Analysis ToolPak Addin installed
receives TRUE or FALSE instead of #NAME. That way, I could use a
conditional
format to change the font to white if true or false is displayed. For some
reason that doesn't work with #NAME.

Thanks!!!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jk jk is offline
external usenet poster
 
Posts: 109
Default networkdays

That doesn't seem to work.
I just get False no mater what values are in Date From, WeekEnd.

I tried to save it and reopen the file but that didn't do it either...

Jason


"Pops Jackson" wrote:

=IF(ISERROR(NETWORKDAYS(DateFrom,WeekEnd, _
Holiday-J12-J13)),"False", _
NETWORKDAYS(DateFrom,WeekEnd, Holiday)-J12-J13)

This is one continuos statement but I broke it up to accomodate the line
breaks caused by this msg setup.
--
Pops Jackson


"JK" wrote:

I could use some help with the NETWORKDAYS function in Excel.
First, I want the formula to calculate the number of work-days between two
dates and subtract the holiday's I have hidden in another worksheet. Then, I
want it to subtract two other cells (vacation days, sickdays).

This is what I have:
=NETWORKDAYS(DateFrom,WeekEnd, Holiday)-J12-J13

Lastly, I would like to incorporate the IF ISERROR into the formula so that
anyone using this template without the Analysis ToolPak Addin installed
receives TRUE or FALSE instead of #NAME. That way, I could use a conditional
format to change the font to white if true or false is displayed. For some
reason that doesn't work with #NAME.

Thanks!!!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jk jk is offline
external usenet poster
 
Posts: 109
Default networkdays

Biff, your formula worked!
Maybe I made a typo with Pop's formula because they appear to be the same
(haven't tracked down the problem yet..)

Thanks guys! You rock!

"T. Valko" wrote:

=NETWORKDAYS(DateFrom,WeekEnd, Holiday)-J12-J13


Is there a problem with the formula? What's in J12 and J13?

You don't need to use conditional formatting to do that. You can use an
error trap directly in the formula that will leave the cell blank:

=IF(ISERROR(NETWORKDAYS(DateFrom,WeekEnd,
Holiday)-J12-J13),"",NETWORKDAYS(DateFrom,WeekEnd, Holiday)-J12-J13)

Biff

"JK" wrote in message
...
I could use some help with the NETWORKDAYS function in Excel.
First, I want the formula to calculate the number of work-days between two
dates and subtract the holiday's I have hidden in another worksheet. Then,
I
want it to subtract two other cells (vacation days, sickdays).

This is what I have:
=NETWORKDAYS(DateFrom,WeekEnd, Holiday)-J12-J13

Lastly, I would like to incorporate the IF ISERROR into the formula so
that
anyone using this template without the Analysis ToolPak Addin installed
receives TRUE or FALSE instead of #NAME. That way, I could use a
conditional
format to change the font to white if true or false is displayed. For some
reason that doesn't work with #NAME.

Thanks!!!






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 130
Default networkdays

Pops included underscores, which only works for VBA writing, not for formula
writing. That is where the difference lies at between Pops vs Valkos
formulas.

Ronald R. Dodge, Jr.
Master MOUS 2000

"JK" wrote in message
...
Biff, your formula worked!
Maybe I made a typo with Pop's formula because they appear to be the same
(haven't tracked down the problem yet..)

Thanks guys! You rock!

"T. Valko" wrote:

=NETWORKDAYS(DateFrom,WeekEnd, Holiday)-J12-J13


Is there a problem with the formula? What's in J12 and J13?

You don't need to use conditional formatting to do that. You can use an
error trap directly in the formula that will leave the cell blank:

=IF(ISERROR(NETWORKDAYS(DateFrom,WeekEnd,
Holiday)-J12-J13),"",NETWORKDAYS(DateFrom,WeekEnd, Holiday)-J12-J13)

Biff

"JK" wrote in message
...
I could use some help with the NETWORKDAYS function in Excel.
First, I want the formula to calculate the number of work-days between
two
dates and subtract the holiday's I have hidden in another worksheet.
Then,
I
want it to subtract two other cells (vacation days, sickdays).

This is what I have:
=NETWORKDAYS(DateFrom,WeekEnd, Holiday)-J12-J13

Lastly, I would like to incorporate the IF ISERROR into the formula so
that
anyone using this template without the Analysis ToolPak Addin installed
receives TRUE or FALSE instead of #NAME. That way, I could use a
conditional
format to change the font to white if true or false is displayed. For
some
reason that doesn't work with #NAME.

Thanks!!!






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
using NETWORKDAYS mandy Excel Discussion (Misc queries) 9 May 2nd 07 10:03 AM
NETWORKDAYS Connie Martin Excel Worksheet Functions 3 July 28th 06 07:52 PM
#NAME when using NETWORKDAYS Amy Excel Discussion (Misc queries) 4 June 29th 06 10:17 PM
Networkdays? Steve Excel Discussion (Misc queries) 6 August 6th 05 01:53 AM
NETWORKDAYS sinbad Excel Worksheet Functions 2 July 19th 05 12:32 PM


All times are GMT +1. The time now is 01:21 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"