#1   Report Post  
Posted to microsoft.public.excel.misc
Roy Roy is offline
external usenet poster
 
Posts: 53
Default Counting Days Open

I need to count the number of days a line item is open workdays only. Right
now I can count the total number of days using this if statement;
if(s2="",today()-A2,s2-a2), but when I try
if(s2="",workday(today()-a2,holidays!a5:a17,workday(s2-a2,holidays!a5:a17) I
get #NA error. What am I doing wrong.

Thanks in advance,
Roy
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Counting Days Open

Try using the NETWORKDAYS function.

=IF(S2="","",NETWORKDAYS(A2,IF(S2="",TODAY(),S2),h olidays!A5:A17))

Biff

"Roy" wrote in message
...
I need to count the number of days a line item is open workdays only.
Right
now I can count the total number of days using this if statement;
if(s2="",today()-A2,s2-a2), but when I try
if(s2="",workday(today()-a2,holidays!a5:a17,workday(s2-a2,holidays!a5:a17)
I
get #NA error. What am I doing wrong.

Thanks in advance,
Roy



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Counting Days Open

Ooops!

I goofed! I know that's hard to believe! <VVBG

Try this instead:

=NETWORKDAYS(A2,IF(S2="",TODAY(),S2),holidays!A5:A 17)

Biff

"T. Valko" wrote in message
...
Try using the NETWORKDAYS function.

=IF(S2="","",NETWORKDAYS(A2,IF(S2="",TODAY(),S2),h olidays!A5:A17))

Biff

"Roy" wrote in message
...
I need to count the number of days a line item is open workdays only.
Right
now I can count the total number of days using this if statement;
if(s2="",today()-A2,s2-a2), but when I try
if(s2="",workday(today()-a2,holidays!a5:a17,workday(s2-a2,holidays!a5:a17)
I
get #NA error. What am I doing wrong.

Thanks in advance,
Roy





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
counting days belvy123 Excel Discussion (Misc queries) 2 March 23rd 07 07:14 AM
counting days? Richard Excel Discussion (Misc queries) 2 August 1st 06 02:37 PM
Counting days Crusty Excel Discussion (Misc queries) 4 August 13th 05 07:49 PM
Counting days tinkertron Excel Worksheet Functions 5 April 7th 05 08:11 AM
counting days Anthony Excel Discussion (Misc queries) 4 February 3rd 05 09:08 PM


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