Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

Blank Date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NotGood@All - 27 Mar 2008 00:00 GMT
I have 2 date fields, B30 & C30  and a number field F30.  I want to calculate
the Net Workdays between B30&C30 putting the answer in F30, but if C30 is
blank, I want F30 to be blank.  I used this code  in F30  
“=IF(C30="","",NETWORKDAYS(C30-B30))”  but I can’t get it to work. Would
someone please help me!
Signature

NotGood@All

David Biddulph - 27 Mar 2008 00:03 GMT
If you look up NETWORKDAYS in Excel help it will tell you the syntax of the
function.
--
David Biddulph

>I have 2 date fields, B30 & C30  and a number field F30.  I want to
>calculate
> the Net Workdays between B30&C30 putting the answer in F30, but if C30 is
> blank, I want F30 to be blank.  I used this code  in F30
> "=IF(C30="","",NETWORKDAYS(C30-B30))"  but I can't get it to work. Would
> someone please help me!
Ron Coderre - 27 Mar 2008 00:07 GMT
Sometimes Excel Help can be...helpful:
NETWORKDAYS(start_date,end_date,holidays)

Your formula doesn't use the correct function arguments:
=IF(C30="","",NETWORKDAYS(C30-B30))

If
C30 is the start_date
and
B30 is the end_date,

the formula should be:
=IF(C30="","",NETWORKDAYS(C30,B30))

Does that help?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

>I have 2 date fields, B30 & C30  and a number field F30.  I want to
>calculate
> the Net Workdays between B30&C30 putting the answer in F30, but if C30 is
> blank, I want F30 to be blank.  I used this code  in F30
> "=IF(C30="","",NETWORKDAYS(C30-B30))"  but I can't get it to work. Would
> someone please help me!
Tyro - 27 Mar 2008 00:15 GMT
Did you put quotes around your formula? If so, remove them. Also, the
NETWORKDAYS format is NETWORKDAYS(StartDate,EndDate[,Holidays]) Your formula
has a "-" sign in it as in C30-B30. NETWORKDAYS wants a comma between C30
and B30 as in =NETWORKDAYS(C30,B30)  If you are using a version of Excel
prior to Excel 2007, you need to have the Analysis Toolpak installed to use
the function NETWORKDAYS. You don't state what happens when you use the
formula. "can't get it to work" doesn't tell anybody anything.

Tyro

>I have 2 date fields, B30 & C30  and a number field F30.  I want to
>calculate
> the Net Workdays between B30&C30 putting the answer in F30, but if C30 is
> blank, I want F30 to be blank.  I used this code  in F30
> "=IF(C30="","",NETWORKDAYS(C30-B30))"  but I can't get it to work. Would
> someone please help me!
NotGood@All - 28 Mar 2008 18:27 GMT
Thank you all for helping me!  The problem was the "-", should have been ","
Signature

NotGood@All

> Did you put quotes around your formula? If so, remove them. Also, the
> NETWORKDAYS format is NETWORKDAYS(StartDate,EndDate[,Holidays]) Your formula
[quoted text clipped - 12 lines]
> > "=IF(C30="","",NETWORKDAYS(C30-B30))"  but I can't get it to work. Would
> > someone please help me!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.