Define names in workbook scope


  1. Posts : 472
    windows 7 32-bit
       #1

    Define names in workbook scope


    Hello guys,

    I use MS Excel 2010. In this app, I know that using Formulas > Define names > define name it is possible to name a cell (or range). At that dialog box there is a scope rectangle which if I choose the entire sheets scope (workbook) so it's said that this name is valid for the entire workbook. First what does this valid mean please? Then, OK, I think I understand it but why when I name cell A1 (in the worksheet1 for example) to "first" its name on that worksheet is valid, that is its name, here "first", is shown in Name Box, but although I've used workbook scope, when I change the worksheet (to worksheet2) and active cell A1, just A1 is shown there not the put name, "first"!?
      My Computer


  2. Posts : 784
    Linux Mint 17 Cinnamon | Win 7 Ult x64
       #2

    If you name A1 "First" in worksheet1, the name is a valid name that defines the cell reference worksheet1!A1.

    The name is not allocated to any other range of cells.

    So, A1 in worksheet2 is still A1. Setting the scope of the name to global does define the same name for the same cell(s) in any other worksheets.

    However, in worksheet2 you can reference the name "First" and it will use the contents of the named cell(s) from worksheet1.

    An Example;

    In Worksheet1 A!:A3 I enter the contents..

    A1: Apples
    A2: Oranges
    A3: Lemons.

    Then I define the name "Fruit" that covers that range of cells. I also set the scope of the name to be workbook (Which is the default)

    Now I go to worksheet2 and I create a data validation list object and I tell it to use the "Fruits" named range. I create this list in Worksheet2 at B2 (any cell would be fine, just using B2 as an example).

    When I click on the list drop down in worksheet2!B2 it will show me apples, oranges and lemons.

    Had I not used the workbook scope I could not have used the name in any but the named scope sheets. Eg. If I had selected Sheet1 as the scope, then that name can only be referenced from within sheet1
      My Computer


  3. Posts : 472
    windows 7 32-bit
    Thread Starter
       #3

    really .
    thanks
      My Computer


  4. Posts : 784
    Linux Mint 17 Cinnamon | Win 7 Ult x64
       #4

    Kurdman said:
    really .
    thanks
    Ok, since all I did was to confuse you, maybe you should take a look at these resources...

    How to Create a Named Range in Excel

    Define named cell references or ranges - Excel

    Define and use names in formulas - Excel
      My Computer


  5. Posts : 472
    windows 7 32-bit
    Thread Starter
       #5

    No need to those links. The problem is solved! Thanks again.
      My Computer


  6. Posts : 784
    Linux Mint 17 Cinnamon | Win 7 Ult x64
       #6

    Kurdman said:
    No need to those links. The problem is solved! Thanks again.

    Good to hear!

    Tanya
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:34.
Find Us