A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using Networkdays with negative numbers



 
 
Thread Tools Display Modes
  #1  
Old July 24th, 2009, 12:36 PM posted to microsoft.public.excel.worksheet.functions
VainDM
external usenet poster
 
Posts: 10
Default Using Networkdays with negative numbers

say i have 3 columns ID Est Finish Date and Actual Finish Date and I
want an extra column that tells me how many working days before or after the
estimated finish date the actual finish date is. I used Networkdays and it
gave me the number of days after the estimated date minus the weekends,
however when the actual date was before the estimated date the formula still
counted the weekends.

Does anyone know a way of stopping this from happening?
  #2  
Old July 24th, 2009, 01:05 PM posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
external usenet poster
 
Posts: 3,719
Default Using Networkdays with negative numbers

On Fri, 24 Jul 2009 04:36:01 -0700, VainDM
wrote:

say i have 3 columns ID Est Finish Date and Actual Finish Date and I
want an extra column that tells me how many working days before or after the
estimated finish date the actual finish date is. I used Networkdays and it
gave me the number of days after the estimated date minus the weekends,
however when the actual date was before the estimated date the formula still
counted the weekends.

Does anyone know a way of stopping this from happening?


I cannot reproduce your problem using the information you've supplied.

Please give some examples with your

Actual DATA
Actual Formula
Actual Result
Expected Result
--ron
  #3  
Old July 24th, 2009, 02:57 PM posted to microsoft.public.excel.worksheet.functions
Rich/rerat
external usenet poster
 
Posts: 423
Default Using Networkdays with negative numbers

If you data is set up like this
Column A Column B Column C Column D
JobID Est Fin Date Fin Date Difference

Enter the following formula in D2, and drag it down Column D:
=IF($B2=$C2,0,IF($C2$B2,NETWORKDAYS($B2,$C2)+1,NE TWORKDAYS($B2,$C2)))

If you finish the job on time:
Column D=0
If you finish the job early:
Column D= (-)#of days
If you finish the job late:
Column D= (+)#of days

If you have a Holiday Table, in D2 use:
=IF($B2=$C2,0,IF($C2$B2,NETWORKDAYS($B2,$C2,HolRa nge)+1,NETWORKDAYS($B2,$C2,HolRange)))

--
Add MS to your News Reader: news://msnews.microsoft.com
Rich/rerat
(RRR News) message rule
Previous Text Snipped to Save Bandwidth When Appropriate


"VainDM" wrote in message
...
say i have 3 columns ID Est Finish Date and Actual Finish Date and I
want an extra column that tells me how many working days before or after the
estimated finish date the actual finish date is. I used Networkdays and it
gave me the number of days after the estimated date minus the weekends,
however when the actual date was before the estimated date the formula still
counted the weekends.

Does anyone know a way of stopping this from happening?



  #4  
Old July 27th, 2009, 10:21 AM posted to microsoft.public.excel.worksheet.functions
VainDM
external usenet poster
 
Posts: 10
Default Using Networkdays with negative numbers

Thank You for your reply it worked perfectly cheers
-VainDM

"Rich/rerat" wrote:

If you data is set up like this
Column A Column B Column C Column D
JobID Est Fin Date Fin Date Difference

Enter the following formula in D2, and drag it down Column D:
=IF($B2=$C2,0,IF($C2$B2,NETWORKDAYS($B2,$C2)+1,NE TWORKDAYS($B2,$C2)))

If you finish the job on time:
Column D=0
If you finish the job early:
Column D= (-)#of days
If you finish the job late:
Column D= (+)#of days

If you have a Holiday Table, in D2 use:
=IF($B2=$C2,0,IF($C2$B2,NETWORKDAYS($B2,$C2,HolRa nge)+1,NETWORKDAYS($B2,$C2,HolRange)))

--
Add MS to your News Reader: news://msnews.microsoft.com
Rich/rerat
(RRR News) message rule
Previous Text Snipped to Save Bandwidth When Appropriate


"VainDM" wrote in message
...
say i have 3 columns ID Est Finish Date and Actual Finish Date and I
want an extra column that tells me how many working days before or after the
estimated finish date the actual finish date is. I used Networkdays and it
gave me the number of days after the estimated date minus the weekends,
however when the actual date was before the estimated date the formula still
counted the weekends.

Does anyone know a way of stopping this from happening?




  #5  
Old July 27th, 2009, 03:20 PM posted to microsoft.public.excel.worksheet.functions
Rich/rerat
external usenet poster
 
Posts: 423
Default Using Networkdays with negative numbers

VainDM,
You're Welcomed.

--
Add MS to your News Reader: news://msnews.microsoft.com
Rich/rerat
(RRR News) message rule
Previous Text Snipped to Save Bandwidth When Appropriate


"VainDM" wrote in message
news Thank You for your reply it worked perfectly cheers
-VainDM

"Rich/rerat" wrote:

If you data is set up like this
Column A Column B Column C Column D
JobID Est Fin Date Fin Date Difference

Enter the following formula in D2, and drag it down Column D:
=IF($B2=$C2,0,IF($C2$B2,NETWORKDAYS($B2,$C2)+1,NE TWORKDAYS($B2,$C2)))

If you finish the job on time:
Column D=0
If you finish the job early:
Column D= (-)#of days
If you finish the job late:
Column D= (+)#of days

If you have a Holiday Table, in D2 use:
=IF($B2=$C2,0,IF($C2$B2,NETWORKDAYS($B2,$C2,HolRa nge)+1,NETWORKDAYS($B2,$C2,HolRange)))

--
Add MS to your News Reader: news://msnews.microsoft.com
Rich/rerat
(RRR News) message rule
Previous Text Snipped to Save Bandwidth When Appropriate


"VainDM" wrote in message
...
say i have 3 columns ID Est Finish Date and Actual Finish Date and I
want an extra column that tells me how many working days before or after
the
estimated finish date the actual finish date is. I used Networkdays and
it
gave me the number of days after the estimated date minus the weekends,
however when the actual date was before the estimated date the formula
still
counted the weekends.

Does anyone know a way of stopping this from happening?






 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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