sorting and cell reference

  • Thread starter Thread starter vwchurch1955
  • Start date Start date
V

vwchurch1955

I am trying to sort multiple columns, some of which have formulas i
them. The cell references change everytime I sort and I do not get th
results I expect. Can anyone tell me how to make the formulas refer t
the correct cells once they are sorted?

I appreciate anyones response. Can send file if need be.
Thank Yo
 
Your formulas have ABSOLUTE references to cells. (Ex: =$A$1). You
must change these to RELATIVE references: =A1


Here's the explanation:
Suppose before you sort, cell D5 has the formula =$A$1

After you sort, the former 5th row in now in the 2nd row, so what was
D5 is now B5 and it still is pointing to $A$1

Problem is: what was A1 is now A12 (it moved down in position)

By making your formulas RELATIVE they will "follow" the referenced cell
when sorted, or when a row is inserted or deleted.
 
vwchurch1955 said:
I am trying to sort multiple columns, some of which have formulas in
them. The cell references change everytime I sort and I do not get the
results I expect. Can anyone tell me how to make the formulas refer to
the correct cells once they are sorted?

It depends on what you expected to happen. Perhaps you should use absolute
references such as $A$1 rather than relative ones such as A1. If this
doesn't solve your problem, post back with a simple example of a formula,
what happens when you sort and what you expected to happen.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top