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 / October 2006

Tip: Looking for answers? Try searching our database.

conditional formatting error message

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Karla V - 30 Oct 2006 18:24 GMT
I am writing a conditional format formula and am getting the error:  "You may
not use references to other worksheets or workbooks for conditional
formatting"  But, I'm not referring to another worksheet in my formula.

Here's the Conditional Format formula in G19:

=AND(G19="",(NETWORKDAYS(TODAY(),F19,holidays))>1)

What it does is make sure cell G19 isn't blank and then checks the number of
days between today and cell F19, minus my named range of 'holidays.'  If
that's greater than 1, then turn it red.

What am I missing?
Bob Phillips - 30 Oct 2006 19:56 GMT
You cannot use NETWORKDAYS in conditional formatting. Why not add a helper
column to calculate the days, and use CF to test that difference.

Signature

HTH

Bob Phillips

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

> I am writing a conditional format formula and am getting the error:  "You may
> not use references to other worksheets or workbooks for conditional
[quoted text clipped - 9 lines]
>
> What am I missing?
Karla V - 30 Oct 2006 20:03 GMT
Thanks, Bob.  Didn't know you couldn't use NETWORKDAYS in CF.  Your
suggestion should work well.

> You cannot use NETWORKDAYS in conditional formatting. Why not add a helper
> column to calculate the days, and use CF to test that difference.
[quoted text clipped - 14 lines]
> >
> > What am I missing?
Biff - 31 Oct 2006 04:37 GMT
The reason you get the error message is because the NETWORKDAYS function is
part of the Analysis ToolPak add-in which is "technically" in another
workbook/sheet. You can get around it by creating a named formula and then
use that named formula in the conditional formatting. Having said all that,
It would be less confusing/complicated to use Bob's suggestion.

Biff

> Thanks, Bob.  Didn't know you couldn't use NETWORKDAYS in CF.  Your
> suggestion should work well.
[quoted text clipped - 21 lines]
>> >
>> > What am I missing?
 
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.