This article was previously published under Q40401
This article has been archived. It is offered "as is" and will no longer be updated.
In Microsoft Excel, when you sort a column of values that are the result ofarithmetic operations based on relative references, you may receive #REFerror values.
To correctly sort a range that includes cells with references, allreferences must be absolute references. Using relative references canresult in errors because the references may become invalid when the cellsare rearranged in the specified sort order.
For example, given these cells and sorting A1:C3 in ascending orderwith the sort key being cell A1