Finding the Intersection of External Defined RangesLast reviewed: November 3, 1994Article ID: Q75960 |
The information in this article applies to:
SUMMARYIn Microsoft Excel, a space acts as the intersection operator. When you enter a space between two defined names, the intersection of those named ranges is returned. When you have two variable names entered on a worksheet, and those names refer to defined ranges on a second worksheet, you must use the following formula to find the intersection of the variable names
Microsoft Excel version 5.0
=INDIRECT("[BOOK1.XLS]SHEET1!"&A1) INDIRECT("BOOK1.XLS]SHEET1!"&B1)where BOOK1.XLS refers to the name of the workbook, SHEET1 refers to the name of the sheet within the workbook where the names are defined, and A1 and B1 are the cells on the current worksheet that contain the variable names.
Microsoft Excel versions 2.x, 3.0 and 4.0
=INDIRECT("SHEETNAME.XLS!"&A1) INDIRECT("SHEETNAME.XLS!"&B1)where SHEETNAME.XLS is the name of the worksheet where the names are defined, and A1 and B1 are the cells on the current worksheet that contain the variable names.
MORE INFORMATION
ExampleThe following example returns the value at the intersection of two defined ranges, "Joe" and "Weight", which have been defined on another sheet.
Microsoft Excel version 5.0
Microsoft Excel versions 2.x, 3.0 and 4.0
Cells A1 and B1 contain the variable names that refer to defined ranges on SHEET1.XLS. Cell A2 returns the intersection of those ranges.
REFERENCES"Microsoft Excel User's Guide, Book 1," version 4.0, page 271. "Microsoft Excel User's Guide," version 3.0, page 231.
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |