NETWORKDAYS

G

Guest

When using conditional formating i get the following message when trying to
use NETWORKDAYS' function

"you may not use references to other worksheets or workbooks for conditional
formatting criteria"
! any ideas why this would be the case

many thanks
 
G

Guest

It suggest NETWORKDAYS is referencing data in a worksheet other than the one
in which you have the CF.

You can get round this by using named ranges and referencing these in you CF
formulae.

HTH
 
J

JE McGimpsey

I'd think it's because the NETWORKDAYS function, prior to XL07, exists
in the Analysis Toolpak Add-in, which is an "other...workbook".
 
D

Dave Peterson

=networkdays() is part of the analysis toolpak (in xl2003 and below).

Since not everyone may have that addin loaded, I'm guessing that excel wants to
make sure conditional formatting doesn't break.

(I sometimes use an adjacent cell (and hide the column). And put the formula
there. Then use that cell in the CF rule.
 
G

Guest

Thanks Dave and all, I do have the analysis tool pack loaded on my source
spread sheet.
Can you give me an example of how i would include the hidded colunm in my
formula.

thanks
 
B

Bob Phillips

I think he means that rather than referring to the other workbook in the
main formula, in another column in the same workbook add a reference to the
cells in the other workbook, such as

='[workbook name.xls]sheet name'!A1

and then in your formula use this cell.

You can hide that column (Format>Columns>Hide) if you don't want to see it.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
D

Dave Peterson

Just to add to what Bob wrote...

Say you want to apply format|Conditional formatting to A1.
Put your =networkdays() formula in B1
Then use B1 as a reference in the Format|conditional formatting rule:

Formula is:
=$B$1>7
(or whatever you wanted)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top