ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sorting rows (https://www.excelbanter.com/excel-worksheet-functions/140507-sorting-rows.html)

[email protected]

sorting rows
 
Is it possible to lock data in rows so they dont mix up when you sort?
I know it would be better to use an database program as Access, but
ive been asked to work in excel and i really need this function since
people are gonna mess my data up otherwise.

Thankful for any help!

/Jeo


leung

sorting rows
 


Can you elaborate more about your situations?

You said they will mix up your data when sort, but how is it mixed?

for example

A
Name
Topmost
John
Peter
Iris

after sort:
A
Name
Iris
John
Peter
Topmost


So Topmost should not be sorted, is this your situation?

or you have many rows as heading on leftmost columne but after sorting, they
mixed up?




" wrote:

Is it possible to lock data in rows so they dont mix up when you sort?
I know it would be better to use an database program as Access, but
ive been asked to work in excel and i really need this function since
people are gonna mess my data up otherwise.

Thankful for any help!

/Jeo



[email protected]

sorting rows
 
Its like this:


D A C B
C B D A
B D A C
A C B D

so if I sort by first column it should be

A C B D
B D A C
C B D A
D A C B

all the data in existing rows holds together just as if i would have
selected all columns.
The thing is that im gonna have people thats not so used with
computers meddling with the file, and i dont want them to just select
on column and then press sort and mix the corresponding data up.

I can do a similiar thing by using autofilter, but it would be neat to
able to really sort the data.


leung

sorting rows
 
Hi

I think the simplest solution is to select your data then make it a list.

Data List Create List

When the list is created, a blue border surround it and make it looks like a
database table. When anyone sort it, whole range will be selected. It also
make more easy to add total row and looks more professional.

hope this help.



" wrote:

Its like this:


D A C B
C B D A
B D A C
A C B D

so if I sort by first column it should be

A C B D
B D A C
C B D A
D A C B

all the data in existing rows holds together just as if i would have
selected all columns.
The thing is that im gonna have people thats not so used with
computers meddling with the file, and i dont want them to just select
on column and then press sort and mix the corresponding data up.

I can do a similiar thing by using autofilter, but it would be neat to
able to really sort the data.



[email protected]

sorting rows
 
Yes it would be the best solution if i only had Excel 2003. =o)

The company uses 2002 and theres no way for me to change that atm. Is
there a way to do this in Excel 2002?

/Jeo


leung

sorting rows
 
Can't you create a list in Excel 2002?

I don't have this version on Hand.





" wrote:

Yes it would be the best solution if i only had Excel 2003. =o)

The company uses 2002 and theres no way for me to change that atm. Is
there a way to do this in Excel 2002?

/Jeo



Roger Govier

sorting rows
 
Hi

DataList came in with XL2003.

You could create a dynamic named range for your data. Then, providing
there are no blank columns within the range, clicking on any cell within
the range and choosing Sort, will select the whole of the named range
before carrying out the sort.

If you want to use VBA, then Dave Peterson developed a very nice routine
utilising hidden shapes.
This can be found at Debra Dalgleish's site
http://www.contextures.com/xlSort02.html

--
Regards

Roger Govier


"Leung" wrote in message
...
Can't you create a list in Excel 2002?

I don't have this version on Hand.





" wrote:

Yes it would be the best solution if i only had Excel 2003. =o)

The company uses 2002 and theres no way for me to change that atm. Is
there a way to do this in Excel 2002?

/Jeo





Gord Dibben

sorting rows
 
The "list" feature was introduced with Excel 2003


Gord Dibben MS Excel MVP

On Tue, 1 May 2007 19:56:00 -0700, Leung
wrote:

Can't you create a list in Excel 2002?

I don't have this version on Hand.





" wrote:

Yes it would be the best solution if i only had Excel 2003. =o)

The company uses 2002 and theres no way for me to change that atm. Is
there a way to do this in Excel 2002?

/Jeo





All times are GMT +1. The time now is 04:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com