# HOW TO: Sort Cells Without Sorting Linked Cells in Excel 2000

This article has been archived. It is offered "as is" and will no longer be updated.
For a Microsoft Excel 97 and earlier version of this article, see 174537.

##### SUMMARY
This step-by-step article shows you how to sort linked data without affecting cells that are linked to the original data.

If you create links to a range of cells and you sort the data to which thecells are linked, the linked cells are updated with the sorted data. This article contains an example that sorts linked data without affecting cellsthat are linked to the original data.

back to the top

### How to Sort Cells

In the following example, the formulas in column D are linked to cells incolumns A and B. When you sort the data in columns A and B, the formulas incolumn D are not affected. To use this example, follow these steps:
1. On a new worksheet, enter the following values:
`      A1: 10     B1: 0     C1:     D1: =Offset(\$A\$1,B1,0)      A2: 20     B2: 1     C2:     D2: =Offset(\$A\$1,B2,0)      A3: 30     B3: 2     C3:     D3: =Offset(\$A\$1,B3,0)      A4: 40     B4: 3     C4:     D4: =Offset(\$A\$1,B4,0)					`
2. Select cells A1:B4.
3. On the Data menu, click Sort.
4. Click Column A in the Sort By box, click Descending, and then click OK.
The linked cells remain linked to the data as it appeared in the originalorder, even after you sort the data in columns A and B.

NOTE: You must select both column A and column B to sort the list in the example. The formula uses column B as the original offset row number.

back to the top
##### REFERENCES
For more information about the OFFSET function, click Microsoft Excel Help on the Help menu, type offset in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

back to the top
howto XL2000
Properties

Article ID: 212079 - Last Review: 12/05/2015 11:52:37 - Revision: 3.1

Microsoft Excel 2000 Standard Edition

• kbnosurvey kbarchive kbhowto kbhowtomaster KB212079