A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to keep rows together when sorting columns?



 
 
Thread Tools Display Modes
  #1  
Old March 28th 05, 05:51 PM
Amit
external usenet poster
 
Posts: n/a
Default How to keep rows together when sorting columns?

Hi,

I'm using MS Excel 97. How do I sort columns in alphabetical order, and keep
the rows together? Right now, the way I'm doing this is to move the column I
want to sort on as the first column, and then highlighting all the columns,
and then sorting.

Is there a way to sort the data by a column that is say, the third or the
fourth column, and keep all the rows together?

e.g. I have the following columns (numbering reflects their order):
1. First Name
2. Last Name
3. Social Security Num
4. Address
5. City
6. State
7. Phone Number

So, if I want to sort by City (which is 5th column), if I highlight that
column and sort, only that column is sorted (which is fine), but the
corresponding rows do not move with the sorted data. If I move the City
column to be the first one, and then highlight all the columns, and then
sort, in that case, the data is sorted by City, and the rows are kept
together.

I checked the Help section, but that wasn't very helpful. Will appreciate
any help.

Thanks.

-Amit

Ads
  #2  
Old March 28th 05, 06:01 PM
Amit
external usenet poster
 
Posts: n/a
Default

Never mind. Found the answer when searcing the newsgroup. Thanks anyways.

-Amit

"Amit" wrote:

> Hi,
>
> I'm using MS Excel 97. How do I sort columns in alphabetical order, and keep
> the rows together? Right now, the way I'm doing this is to move the column I
> want to sort on as the first column, and then highlighting all the columns,
> and then sorting.
>
> Is there a way to sort the data by a column that is say, the third or the
> fourth column, and keep all the rows together?
>
> e.g. I have the following columns (numbering reflects their order):
> 1. First Name
> 2. Last Name
> 3. Social Security Num
> 4. Address
> 5. City
> 6. State
> 7. Phone Number
>
> So, if I want to sort by City (which is 5th column), if I highlight that
> column and sort, only that column is sorted (which is fine), but the
> corresponding rows do not move with the sorted data. If I move the City
> column to be the first one, and then highlight all the columns, and then
> sort, in that case, the data is sorted by City, and the rows are kept
> together.
>
> I checked the Help section, but that wasn't very helpful. Will appreciate
> any help.
>
> Thanks.
>
> -Amit
>

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing problems with columns and rows Ann Shaw Excel Discussion (Misc queries) 0 February 17th 05 05:35 PM
Convert multiple columns to rows Lois Lane Excel Worksheet Functions 8 January 10th 05 12:47 AM
Sorting rows AND columns 3D Excel Worksheet Functions 2 January 7th 05 02:15 AM
interchange columns with rows Herman Excel Discussion (Misc queries) 2 December 8th 04 05:40 PM
Rows and columns Loi New Users to Excel 0 November 30th 04 07:42 PM


All times are GMT +1. The time now is 07:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 2004-2014 ExcelBanter.
The comments are property of their posters.