#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Blank Date

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 cant get it to work. Would
someone please help me!
--
NotGood@All
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Blank Date

If you look up NETWORKDAYS in Excel help it will tell you the syntax of the
function.
--
David Biddulph

"NotGood@All" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Blank Date

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)


"NotGood@All" wrote in message
...
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



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default Blank Date

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


"NotGood@All" wrote in message
...
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



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Blank Date

Thank you all for helping me! The problem was the "-", should have been ","
--
NotGood@All


"Tyro" wrote:

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


"NotGood@All" wrote in message
...
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






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
Date Calcuation with Blank Cells PT40 Excel Worksheet Functions 5 January 7th 08 08:45 PM
Date changes to ### when next cell is blank - why? pamjmac27 Excel Discussion (Misc queries) 6 December 12th 07 07:43 PM
Date Formula Problem - Leave date blank if Null Gayla Excel Worksheet Functions 5 April 24th 07 09:42 PM
date of corresponding blank cell Aoife Excel Discussion (Misc queries) 2 April 5th 06 07:52 PM
How do I make a blank cell with a date format blank? Pivot Table/Query Excel Worksheet Functions 6 June 14th 05 11:19 PM


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