Microsoft KB Archive/300638

= How to extract data from a damaged file in Excel 2002 or Excel 2003 =

PSS ID Number: 300638

Article Last Modified on 9/22/2004

-

The information in this article applies to:


 * Microsoft Office Excel 2003
 * Microsoft Excel 2002

-



This article was previously published under Q300638





For a Microsoft Excel 2000 version of this article, see 214253.



For a Microsoft Excel 98 and earlier version of this article, see 147216.



SUMMARY
In Microsoft Excel, you may be able to extract the values from a damaged file by using external references to link to the file.



MORE INFORMATION
To extract the values from a damaged file, use either of the following methods.

Method 1

 * 1) On the File menu, click Open. Then, browse from the current folder to the folder that contains the damaged file, and click Cancel.
 * 2) Click New on the File menu, and then click Blank Workbook in the New Workbook task pane.
 * 3) Type = !A1 in cell A1 of the new workbook, where   is the name of the damaged workbook. If the Select Sheet dialog box appears, select the appropriate sheet, and click OK.
 * 4) Select cell A1, and on the Edit menu, click Copy. Then, select an area that is approximately the same size as the range of cells that contain data in the damaged file, and then click Paste on the Edit menu.
 * 5) With this range of cells still selected, click Copy on the Edit menu.
 * 6) On the Edit menu, click Paste Special. Select Values and click OK.

This step removes the links to the damaged file and leaves only the data.

Method 2
 Click New on the File menu, and then click Blank Workbook in the New Workbook task pane. Create a second new workbook by repeating step 1. In the first workbook, select cell A1. Then, click Copy on the Edit menu. Switch to the second workbook and select cell A1. Then, click Paste Special on the Edit menu and click Paste Link. Select cell A1 and remove the dollar signs from the formula.

For example, if the formula bar displays the text

=[Book13]Sheet1!$A$1

remove the dollar signs. The formula bar should display the following text:

=[Book13]Sheet1!A1

</li> Select cell A1 and click Copy on the Edit menu.</li> Select an area that is approximately the same size as the range of the cells that contain data in the damaged file (for example, select A1:H100), and then click Paste on the Edit menu.</li> With this cell range selected, click Links on the Edit menu.</li> In the Links dialog box, select the file name of the first workbook, and click Change Source. When the Change Links dialog box appears, select the damaged file and click OK. If the Select Sheet dialog box appears, click the appropriate sheet and click OK.</li> In the Links dialog box, click OK.</li> With the cell range still selected, click Copy on the Edit menu.</li> On the Edit menu, click Paste Special. Select Values, and then click OK.</li></ol>

This removes the links to the damaged file and leaves only the data.

<div class="references_section">