+ Reply to Thread
Results 1 to 3 of 3

Name Define formula problem

  1. #1
    Registered User
    Join Date
    07-26-2009
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2002
    Posts
    14

    Name Define formula problem

    Hello,

    I have a formula in the Name Define part of excel in workbook that refers to another workbook.

    =IF(COUNTIF([DaysWorking.xls]Sunday!$A:$A,'2009'!I1)>0,1,"")

    The DaysWorking.xls workbook is a data workbook, users may change the data and after they are done, they may exit the program but not save it. The DaysWorking.xls workbook should always revert back to the original form. I've put a read only property on it, but the problem lies when the user saves the file under Save/As function. Excel then updates the link to whatever the user saves the file as. Is there a way to make sure that the formula never get's changed?

    Thanks for any, and all help,
    tja.
    Last edited by tja1964; 07-27-2009 at 02:38 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Name Define formula problem

    I am presuming that given you're using COUNTIF the target file is always open when the file containing the name is in use ? In which case you could potentially use INDIRECT to construct the reference ?

    =IF(COUNTIF(INDIRECT("[DaysWorking.xls]Sunday!$A:$A"),'2009'!I1)>0,1,"")

  3. #3
    Registered User
    Join Date
    07-26-2009
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2002
    Posts
    14

    Re: Name Define formula problem

    Thank you DonkeyOte!!!! That worked like a charm.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1