Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default conditional formatting error message

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?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default conditional formatting error message

You cannot use NETWORKDAYS in conditional formatting. Why not add a helper
column to calculate the days, and use CF to test that difference.

--
HTH

Bob Phillips

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

"Karla V" wrote in message
...
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?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default conditional formatting error message

Thanks, Bob. Didn't know you couldn't use NETWORKDAYS in CF. Your
suggestion should work well.



"Bob Phillips" wrote:

You cannot use NETWORKDAYS in conditional formatting. Why not add a helper
column to calculate the days, and use CF to test that difference.

--
HTH

Bob Phillips

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

"Karla V" wrote in message
...
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?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default conditional formatting error message

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

"Karla V" wrote in message
...
Thanks, Bob. Didn't know you couldn't use NETWORKDAYS in CF. Your
suggestion should work well.



"Bob Phillips" wrote:

You cannot use NETWORKDAYS in conditional formatting. Why not add a
helper
column to calculate the days, and use CF to test that difference.

--
HTH

Bob Phillips

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

"Karla V" wrote in message
...
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?






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
sorting a range with conditional formatting renie Excel Worksheet Functions 2 June 2nd 06 10:43 PM
conditional formatting glitches Kat Excel Discussion (Misc queries) 2 May 26th 06 08:16 PM
Keeping conditional formatting when sorting Andrea A Excel Discussion (Misc queries) 0 April 4th 06 03:00 PM
conditional formatting Rich Excel Discussion (Misc queries) 2 April 1st 06 10:27 AM
cannot use ISEVEN or ISODD functions in Conditional Formatting Scott Paine Excel Worksheet Functions 6 December 6th 05 09:44 PM


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