Sorting of data in excel sheet

K

K Das

Is it possible to lock a particular cell - which means
that even if the data is sorted, the data does not go to a
new cell, but remains in its cell for eg.

Cell A1 = 1
Cell A2 = 3
Cell A3 = 2

Now if I sort on column A, it would appear as follows:

Cell A1 = 1
Cell A2 = 2
Cell A3 = 3

Whereas I want it to appear as follows:

Cell A1 = 1
Cell A3 = 2
Cell A2 = 3

Something similar to filtering of data

Regards
 
J

Jonathan Rynd

Is it possible to lock a particular cell - which means
that even if the data is sorted, the data does not go to a
new cell, but remains in its cell

It takes a little bit of gymnastics.

First, move the column of data to a different column, safely outside the
range you're sorting. (For instance, if the columns you sort are in A:G,
move the data to column J.)

Then in cells of the now-blank column, put
=index(J:J,row())

and fill down.

Now when you sort, and recalculate, the column will stay put.
 

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

Top