Selecting, Editing, or Extracting Values from Cells in TableLast reviewed: November 2, 1994Article ID: Q68518 |
SUMMARYWhen you use tables that have headings at the top of and to the left of the data, it is useful to use the Create Names command and the intersection operator to make selections, edit data, or extract values quickly. This can be especially useful in a macro.
MORE INFORMATIONFor example, suppose you have a table set up as follows:
A1: Name A2: Age A3: Color B1: Tom B2: 8 B3: Red C1: Susan C2: 9 C3: Blue D1: Billy D2: 7 D4: Yellow This can be especially useful in a macro. Suppose you want to change Susan's color from blue to pink. Instead of using the Vlookup, Index, and/or Match commands to find the appropriate cell to edit, you can simply type the following commands in your macro sheet:
A1: =select(!Susan !Color) A2: =formula("pink")This changes "blue" to "pink".
REFERENCES"Microsoft Excel Reference." version 2.00, Page 371. "Microsoft Excel User's Guide." version 3.00, Page 231.
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |