#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MP MP is offline
external usenet poster
 
Posts: 39
Default #NAME? Error

I have a spreadsheet that I sent to a collegeau who is having difficulty with
one of the formulas. The formula is returning the #NAME? error in the cell.
However when she sent the spreadsheet to me the formula works correctly.
Here's the formula:
=NETWORKDAYS(DATE(YEAR(TODAY()),MONTH(J1),1),DATE( YEAR(TODAY()),MONTH(J1)+1,0))-J10-J11-J12

The formula is used to determine the number of available shipping days in a
month minus planned shutdown days, etc.

Why does the formula work on one computer and not the other???
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default #NAME? Error

Hi mp,

She will need to install the Analysis Toolpack.

Go to Tools + Addins + Check Analysis Toolpak.

Judith
--
Hope this helps


"mp" wrote:

I have a spreadsheet that I sent to a collegeau who is having difficulty with
one of the formulas. The formula is returning the #NAME? error in the cell.
However when she sent the spreadsheet to me the formula works correctly.
Here's the formula:
=NETWORKDAYS(DATE(YEAR(TODAY()),MONTH(J1),1),DATE( YEAR(TODAY()),MONTH(J1)+1,0))-J10-J11-J12

The formula is used to determine the number of available shipping days in a
month minus planned shutdown days, etc.

Why does the formula work on one computer and not the other???

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default #NAME? Error

If you check XL Help for NETWORKDAYS, you will see that this is part
of the Analysis ToolPak which needs to be installed for XL versions
2003 and earlier (it is built-in with XL2007).

So, get your colleague to install the ATP (details in XL Help) and it
should be okay.

Hope this helps.

Pete

On Aug 25, 2:41*pm, mp wrote:
I have a spreadsheet that I sent to a collegeau who is having difficulty with
one of the formulas. *The formula is returning the #NAME? error in the cell. *
However when she sent the spreadsheet to me the formula works correctly. *
Here's the formula: *
=NETWORKDAYS(DATE(YEAR(TODAY()),MONTH(J1),1),DATE( YEAR(TODAY()),MONTH(J1)+1*,0))-J10-J11-J12

The formula is used to determine the number of available shipping days in a
month minus planned shutdown days, etc.

Why does the formula work on one computer and not the other???


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default #NAME? Error

Here's an alternative that doesn't depend on the Analysis ToolPak add-in.

=SUM(INT((WEEKDAY(DATE(YEAR(TODAY()),MONTH(J1),1)-{1,2,3,4,5},2)+DATE(YEAR(TODAY()),MONTH(J1)+1,0)-DATE(YEAR(TODAY()),MONTH(J1),1))/7))-J10-J11-J12

Or, you can shorten that a bit by using cells to hold the date boundaries:

L1:

=DATE(YEAR(TODAY()),MONTH(J1),1)

L2:

=DATE(YEAR(TODAY()),MONTH(J1)+1,0)

Then:

=SUM(INT((WEEKDAY(L1-{1,2,3,4,5},2)+L2-L1)/7))-J10-J11-J12

--
Biff
Microsoft Excel MVP


"mp" wrote in message
...
I have a spreadsheet that I sent to a collegeau who is having difficulty
with
one of the formulas. The formula is returning the #NAME? error in the
cell.
However when she sent the spreadsheet to me the formula works correctly.
Here's the formula:
=NETWORKDAYS(DATE(YEAR(TODAY()),MONTH(J1),1),DATE( YEAR(TODAY()),MONTH(J1)+1,0))-J10-J11-J12

The formula is used to determine the number of available shipping days in
a
month minus planned shutdown days, etc.

Why does the formula work on one computer and not the other???



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
Visual Basic Error Run Time Error, Type Mismatch Meg Partridge Excel Discussion (Misc queries) 12 September 10th 08 06:10 PM
Error: "Excel encountered an error and had to remove some formatti Carl Excel Discussion (Misc queries) 0 September 18th 06 06:39 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


All times are GMT +1. The time now is 09:46 AM.

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"