Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Shirley Munro
 
Posts: n/a
Default Combining an If Statement with NETWORKDAYS function


Hi

Here is my problem. I am trying to work out the number of working days
between 2 dates to assess delivery performance. In some instances it is
a positive number of days because goods have been delivered early and
in others it is a negative number of days because goods have been
delivered late. To get an accurate number of working days, I am using
the NETWORKDAYS function and then subtracting 1 more day. This is fine
where the number of days is a positve value but where the number of days
is a negative value, I actually need to add 1 more day on. Hopefully
the screenshot will illustrates this. The formula I have used in P2
is:

=NETWORKDAYS(O2,N2)-1

The answer appears as -5 but in actual fact it should be -3

The formula has been copied in the remaining cells in column P. It
gives the correct answer in P3 because this is a positive number of
days.

I wondered if I could combined an If statement with NETWORKDAYS but
couldn't get this to work.

Any help would be much appreciated

Shirley Munro


--
Shirley Munro
------------------------------------------------------------------------
Shirley Munro's Profile: http://www.excelforum.com/member.php...nfo&userid=836
View this thread: http://www.excelforum.com/showthread...hreadid=554002

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Combining an If Statement with NETWORKDAYS function

=NETWORKDAYS(O2,N2)+IF(NETWORKDAYS(O2,N2)0,-1,1)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Shirley Munro"
wrote in message
news:Shirley.Munro.29r23s_1150889147.1099@excelfor um-nospam.com...

Hi

Here is my problem. I am trying to work out the number of working days
between 2 dates to assess delivery performance. In some instances it is
a positive number of days because goods have been delivered early and
in others it is a negative number of days because goods have been
delivered late. To get an accurate number of working days, I am using
the NETWORKDAYS function and then subtracting 1 more day. This is fine
where the number of days is a positve value but where the number of days
is a negative value, I actually need to add 1 more day on. Hopefully
the screenshot will illustrates this. The formula I have used in P2
is:

=NETWORKDAYS(O2,N2)-1

The answer appears as -5 but in actual fact it should be -3

The formula has been copied in the remaining cells in column P. It
gives the correct answer in P3 because this is a positive number of
days.

I wondered if I could combined an If statement with NETWORKDAYS but
couldn't get this to work.

Any help would be much appreciated

Shirley Munro


--
Shirley Munro
------------------------------------------------------------------------
Shirley Munro's Profile:

http://www.excelforum.com/member.php...nfo&userid=836
View this thread: http://www.excelforum.com/showthread...hreadid=554002



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
networkdays function help Deb Bagby Excel Worksheet Functions 3 November 1st 05 05:36 PM
Networkdays Function Not Working Al H. Excel Worksheet Functions 2 April 11th 05 03:05 PM
Networkdays function Susan Hayes Excel Worksheet Functions 2 April 5th 05 06:59 PM
Using date function in an if statement M Smith Excel Worksheet Functions 2 March 30th 05 06:53 PM
Combining SUM Function with Nested If Statement Somecallmejosh Excel Discussion (Misc queries) 3 December 6th 04 04:25 PM


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