LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default indirect and networkdays

The function that I am currently using is as followed in column E:

={(IF(INDIRECT("d2:d" & C2=D2),NETWORKDAYS(D2,C2)-1,NETWORKDAYS(D2-C2)+1))}

As I update my data depending on the constrait, I want the difference in the
number of days from Column C and D to be refresh according to the number of
data I have.

For example,
When I use:

=-(IF(D2=C2,NETWORKDAYS(D2,C2)-1,NETWORKDAYS(D2,C2)+1))

If I refresh my data and I now have 20 rows instead of 10, I am not able to
receive an answer unless I drag the function down to row 20.

Am I doing something incorrect in my function at the top?
 
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



All times are GMT +1. The time now is 04:44 PM.

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"