Excel: Operations Using Database or Criteria on External WS

Last reviewed: November 29, 1994
Article ID: Q58226
The information in this article applies to:
  • Microsoft Excel for the Macintosh, versions 2.2, 3.0, 4.0

SUMMARY

When using Microsoft Excel, you can perform database operations using a database or criteria range from another worksheet or macro sheet. To do this, choose Define Name from the Formula menu to define the database or criteria as an external reference to the worksheet or macro sheet containing the database or criteria range.

MORE INFORMATION

For example, if a database is set on Worksheet1, and you want to do an extract to Worksheet2, do the following:

  1. With Worksheet2 active, choose Define Name from the Formula menu.

  2. In the Name box, enter the word "Database" (without quotation marks).

  3. In the Refers To box, enter the worksheet name followed by an exclamation point and the database range. Be sure to precede the worksheet name with an equal sign. For example, you could enter the following:

          =Worksheet1!$A$1:$G$150
    

    Alternatively, if the database is already defined on Worksheet1, you could enter the following as your reference on Worksheet2:

          =Worksheet1!Database
    

  4. You can define the criteria on Worksheet2 in the normal manner, or you can use a criteria already defined on Worksheet1 by following the above steps to define the name "Criteria" on Worksheet2.

REFERENCES

"Microsoft Excel User's Guide 2," version 4.0, pages 305-357

"Microsoft Excel User's Guide," version 3.0, pages 347-387

"Microsoft Excel Reference," version 2.2, pages 148-157


KBCategory: kbusage
KBSubcategory:

Additional reference words: macrosheet 2.2 2.20 3.0 3.00 4.0 4.00


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 29, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.