ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sort (again) (https://www.excelbanter.com/excel-discussion-misc-queries/131816-sort-again.html)

[email protected]

Sort (again)
 
I have the following table and I want to sort the rows by state, zip,
city, au_lanme, au_fname, phone, address, contract

Using excel sort I can only sort on stae, zip and city. How to include
au-Name and the rest?
Thanks.

au_id au_lname au_fname phone address city state zip contract
172-32-1176 White Johnson 408 496-7223 10932 Bigge Rd. Menlo Park CA
94025 1
486-29-1786 Locksley Charlene 415 585-4620 18 Broadway Av. San
Francisco CA 94130 1
427-17-2319 Dull Ann 415 836-7128 3410 Blonde St. Palo Alto CA 94301 1
846-92-7186 Hunter Sheryl 415 836-7128 3410 Blonde St. Palo Alto CA
94301 1
672-71-3249 Yokomoto Akiko 415 935-4228 3 Silver Ct. Walnut Creek CA
94595 1
756-30-7391 Karsen Livia 415 534-9219 5720 McAuley St. Oakland CA
94609 1
274-80-9391 Straight Dean 415 834-2919 5420 College Av. Oakland CA
94609 1
724-08-9931 Stringer Dirk 415 843-2991 5420 Telegraph Av. Oakland CA
94609 0
724-80-9391 MacFeather Stearns 415 354-7128 44 Upland Hts. Oakland CA
94612 1
213-46-8915 Green Marjorie 415 986-7020 309 63rd St. #411 Oakland CA
94618 1
409-56-7008 Bennet Abraham 415 658-9932 6223 Bateman St. Berkeley CA
94705 1
238-95-7766 Carson Cheryl 415 548-7723 589 Darwin Ln. Berkeley CA
94705 1
267-41-2394 O'Leary Michael 408 286-2428 22 Cleveland Av. #14 San Jose
CA 95128 1
472-27-2349 Gringlesby Burt 707 938-6445 PO Box 792 Covelo CA 95428 1
893-72-1158 McBadden Heather 707 448-4982 301 Putnam Vacaville CA
95688 0
722-51-5454 DeFrance Michel 219 547-9982 3 Balding Pl. Gary IN 46403 1
341-22-1782 Smith Meander 913 843-0462 10 Mississippi Dr. Lawrence KS
66044 0
807-91-6654 Panteley Sylvia 301 946-8853 1956 Arlington Pl. Rockville
MD 20853 1
712-45-1867 del Castillo Innes 615 996-8275 2286 Cram Pl. #86 Ann
Arbor MI 48105 1
648-92-1872 Blotchet-Halls Reginald 503 745-6402 55 Hillsdale Bl.
Corvallis OR 97330 1
527-72-3246 Greene Morningstar 615 297-2723 22 Graybar House Rd.
Nashville TN 37215 0
899-46-2035 Ringer Anne 801 826-0752 67 Seventh Av. Salt Lake City UT
84152 1
998-72-3567 Ringer Albert 801 826-0752 67 Seventh Av. Salt Lake City
UT 84152 1


Toppers

Sort (again)
 


you can sort by the 3 most minor, then sort by the 3 major fields.

That'll be 2 different data|sorts.

HTH



" wrote:

I have the following table and I want to sort the rows by state, zip,
city, au_lanme, au_fname, phone, address, contract

Using excel sort I can only sort on stae, zip and city. How to include
au-Name and the rest?
Thanks.

au_id au_lname au_fname phone address city state zip contract
172-32-1176 White Johnson 408 496-7223 10932 Bigge Rd. Menlo Park CA
94025 1
486-29-1786 Locksley Charlene 415 585-4620 18 Broadway Av. San
Francisco CA 94130 1
427-17-2319 Dull Ann 415 836-7128 3410 Blonde St. Palo Alto CA 94301 1
846-92-7186 Hunter Sheryl 415 836-7128 3410 Blonde St. Palo Alto CA
94301 1
672-71-3249 Yokomoto Akiko 415 935-4228 3 Silver Ct. Walnut Creek CA
94595 1
756-30-7391 Karsen Livia 415 534-9219 5720 McAuley St. Oakland CA
94609 1
274-80-9391 Straight Dean 415 834-2919 5420 College Av. Oakland CA
94609 1
724-08-9931 Stringer Dirk 415 843-2991 5420 Telegraph Av. Oakland CA
94609 0
724-80-9391 MacFeather Stearns 415 354-7128 44 Upland Hts. Oakland CA
94612 1
213-46-8915 Green Marjorie 415 986-7020 309 63rd St. #411 Oakland CA
94618 1
409-56-7008 Bennet Abraham 415 658-9932 6223 Bateman St. Berkeley CA
94705 1
238-95-7766 Carson Cheryl 415 548-7723 589 Darwin Ln. Berkeley CA
94705 1
267-41-2394 O'Leary Michael 408 286-2428 22 Cleveland Av. #14 San Jose
CA 95128 1
472-27-2349 Gringlesby Burt 707 938-6445 PO Box 792 Covelo CA 95428 1
893-72-1158 McBadden Heather 707 448-4982 301 Putnam Vacaville CA
95688 0
722-51-5454 DeFrance Michel 219 547-9982 3 Balding Pl. Gary IN 46403 1
341-22-1782 Smith Meander 913 843-0462 10 Mississippi Dr. Lawrence KS
66044 0
807-91-6654 Panteley Sylvia 301 946-8853 1956 Arlington Pl. Rockville
MD 20853 1
712-45-1867 del Castillo Innes 615 996-8275 2286 Cram Pl. #86 Ann
Arbor MI 48105 1
648-92-1872 Blotchet-Halls Reginald 503 745-6402 55 Hillsdale Bl.
Corvallis OR 97330 1
527-72-3246 Greene Morningstar 615 297-2723 22 Graybar House Rd.
Nashville TN 37215 0
899-46-2035 Ringer Anne 801 826-0752 67 Seventh Av. Salt Lake City UT
84152 1
998-72-3567 Ringer Albert 801 826-0752 67 Seventh Av. Salt Lake City
UT 84152 1



[email protected]

Sort (again)
 
On Feb 22, 4:16 pm, Toppers wrote:
you can sort by the 3 most minor, then sort by the 3 major fields.

That'll be 2 different data|sorts.

HTH



" wrote:
I have the following table and I want to sort the rows by state, zip,
city, au_lanme, au_fname, phone, address, contract


Using excel sort I can only sort on stae, zip and city. How to include
au-Name and the rest?
Thanks.


au_id au_lname au_fname phone address city state zip contract
172-32-1176 White Johnson 408 496-7223 10932 Bigge Rd. Menlo Park CA
94025 1
486-29-1786 Locksley Charlene 415 585-4620 18 Broadway Av. San
Francisco CA 94130 1
427-17-2319 Dull Ann 415 836-7128 3410 Blonde St. Palo Alto CA 94301 1
846-92-7186 Hunter Sheryl 415 836-7128 3410 Blonde St. Palo Alto CA
94301 1
672-71-3249 Yokomoto Akiko 415 935-4228 3 Silver Ct. Walnut Creek CA
94595 1
756-30-7391 Karsen Livia 415 534-9219 5720 McAuley St. Oakland CA
94609 1
274-80-9391 Straight Dean 415 834-2919 5420 College Av. Oakland CA
94609 1
724-08-9931 Stringer Dirk 415 843-2991 5420 Telegraph Av. Oakland CA
94609 0
724-80-9391 MacFeather Stearns 415 354-7128 44 Upland Hts. Oakland CA
94612 1
213-46-8915 Green Marjorie 415 986-7020 309 63rd St. #411 Oakland CA
94618 1
409-56-7008 Bennet Abraham 415 658-9932 6223 Bateman St. Berkeley CA
94705 1
238-95-7766 Carson Cheryl 415 548-7723 589 Darwin Ln. Berkeley CA
94705 1
267-41-2394 O'Leary Michael 408 286-2428 22 Cleveland Av. #14 San Jose
CA 95128 1
472-27-2349 Gringlesby Burt 707 938-6445 PO Box 792 Covelo CA 95428 1
893-72-1158 McBadden Heather 707 448-4982 301 Putnam Vacaville CA
95688 0
722-51-5454 DeFrance Michel 219 547-9982 3 Balding Pl. Gary IN 46403 1
341-22-1782 Smith Meander 913 843-0462 10 Mississippi Dr. Lawrence KS
66044 0
807-91-6654 Panteley Sylvia 301 946-8853 1956 Arlington Pl. Rockville
MD 20853 1
712-45-1867 del Castillo Innes 615 996-8275 2286 Cram Pl. #86 Ann
Arbor MI 48105 1
648-92-1872 Blotchet-Halls Reginald 503 745-6402 55 Hillsdale Bl.
Corvallis OR 97330 1
527-72-3246 Greene Morningstar 615 297-2723 22 Graybar House Rd.
Nashville TN 37215 0
899-46-2035 Ringer Anne 801 826-0752 67 Seventh Av. Salt Lake City UT
84152 1
998-72-3567 Ringer Albert 801 826-0752 67 Seventh Av. Salt Lake City
UT 84152 1- Hide quoted text -


- Show quoted text -


How? First I sorted them by state, zip, city. Then if I try to re-sort
(using au_id, au_lname etc) them then the original sort (by state-zip-
city) is lost. I want to keep the original sort and then how do I
introduce more columns into the sort? Thanks.


Toppers

Sort (again)
 
My reading of your requirement would be:

Highlight all data
Data=Sort
Sort by au_lname, au_fname
Data==Sort
Sort by State, Zip,City

My results:

au_id au_lname au_fname Phone Address City State Zip contract
172-32-1176 White Johnson 408496-7223 10932 Bigge Rd. Menlo Park CA 94025 1
486-29-1786 Locksley Charlene 415585-4620 18 Broadway
Av. SanFrancisco CA 94130 1
427-17-2319 Dull Ann 415836-7128 3410 Blonde St. Palo Alto CA 94301 1
846-92-7186 Hunter Sheryl 415836-7128 3410 Blonde St. Palo Alto CA 94301 1
672-71-3249 Yokomoto Akiko 415935-4228 3 Silver Ct. Walnut Creek CA 94595 1
756-30-7391 Karsen Livia 415534-9219 5720 McAuley St. Oakland CA 94609 1
274-80-9391 Straight Dean 415834-2919 5420 College Av. Oakland CA 94609 1
724-08-9931 Stringer Dirk 415843-2991 5420 Telegraph Av. Oakland CA 94609 0
724-80-9391 MacFeather Stearns 415354-7128 44 Upland Hts. Oakland CA 94612 1
213-46-8915 Green Marjorie 415986-7020 309 63rd St. #$11 Oakland CA 94618 1
409-56-7008 Bennet Abraham 415658-9932 6223 Bateman St. Berkeley CA 94705 1
238-95-7766 Carson Cheryl 415548-7723 589 Darwin Ln. Berkeley CA 94705 1
267-41-2394 O'Leary Michael 408286-2428 22 Cleveland Av. #14 San
Jose CA 95128 1
472-27-2349 Gringlesby Burt 707938-6445 PO Box 792 Covelo CA 95428 1
893-72-1158 McBadden Heather 707448-4982 301 Putnam Vacaville CA 95688 0
722-51-5454 DeFrance Michel 219547-9982 3 Balding Pl. Gary IN 46403 1
341-22-1782 Smith Meander 913843-0462 10 Mississippi Dr. Lawrence KS 66044 0
807-91-6654 Panteley Sylvia 301946-8853 1956 Arlington
Pl. Rockville MD 20853 1
712-45-1867 del Castillo Innes615 996-8275 2286 Cram #86 Ann Arbor MI 48105 1
648-92-1872 Blotchet-Halls Reginald 503745-6402 55 Hillsdale
Bl.Corvallis OR 97330 1
527-72-3246 Greene Morningstar 615297-2723 22 Graybar
House Rd.Nashville TN 37215 0
998-72-3567 Ringer Albert 801826-0752 67 Seventh Av. Salt Lake City UT 84152 1
899-46-2035 Ringer Anne 801826-0752 67 Seventh Av. Salt Lake City UT 84152 1


" wrote:

On Feb 22, 4:16 pm, Toppers wrote:
you can sort by the 3 most minor, then sort by the 3 major fields.

That'll be 2 different data|sorts.

HTH



" wrote:
I have the following table and I want to sort the rows by state, zip,
city, au_lanme, au_fname, phone, address, contract


Using excel sort I can only sort on stae, zip and city. How to include
au-Name and the rest?
Thanks.


au_id au_lname au_fname phone address city state zip contract
172-32-1176 White Johnson 408 496-7223 10932 Bigge Rd. Menlo Park CA
94025 1
486-29-1786 Locksley Charlene 415 585-4620 18 Broadway Av. San
Francisco CA 94130 1
427-17-2319 Dull Ann 415 836-7128 3410 Blonde St. Palo Alto CA 94301 1
846-92-7186 Hunter Sheryl 415 836-7128 3410 Blonde St. Palo Alto CA
94301 1
672-71-3249 Yokomoto Akiko 415 935-4228 3 Silver Ct. Walnut Creek CA
94595 1
756-30-7391 Karsen Livia 415 534-9219 5720 McAuley St. Oakland CA
94609 1
274-80-9391 Straight Dean 415 834-2919 5420 College Av. Oakland CA
94609 1
724-08-9931 Stringer Dirk 415 843-2991 5420 Telegraph Av. Oakland CA
94609 0
724-80-9391 MacFeather Stearns 415 354-7128 44 Upland Hts. Oakland CA
94612 1
213-46-8915 Green Marjorie 415 986-7020 309 63rd St. #411 Oakland CA
94618 1
409-56-7008 Bennet Abraham 415 658-9932 6223 Bateman St. Berkeley CA
94705 1
238-95-7766 Carson Cheryl 415 548-7723 589 Darwin Ln. Berkeley CA
94705 1
267-41-2394 O'Leary Michael 408 286-2428 22 Cleveland Av. #14 San Jose
CA 95128 1
472-27-2349 Gringlesby Burt 707 938-6445 PO Box 792 Covelo CA 95428 1
893-72-1158 McBadden Heather 707 448-4982 301 Putnam Vacaville CA
95688 0
722-51-5454 DeFrance Michel 219 547-9982 3 Balding Pl. Gary IN 46403 1
341-22-1782 Smith Meander 913 843-0462 10 Mississippi Dr. Lawrence KS
66044 0
807-91-6654 Panteley Sylvia 301 946-8853 1956 Arlington Pl. Rockville
MD 20853 1
712-45-1867 del Castillo Innes 615 996-8275 2286 Cram Pl. #86 Ann
Arbor MI 48105 1
648-92-1872 Blotchet-Halls Reginald 503 745-6402 55 Hillsdale Bl.
Corvallis OR 97330 1
527-72-3246 Greene Morningstar 615 297-2723 22 Graybar House Rd.
Nashville TN 37215 0
899-46-2035 Ringer Anne 801 826-0752 67 Seventh Av. Salt Lake City UT
84152 1
998-72-3567 Ringer Albert 801 826-0752 67 Seventh Av. Salt Lake City
UT 84152 1- Hide quoted text -


- Show quoted text -


How? First I sorted them by state, zip, city. Then if I try to re-sort
(using au_id, au_lname etc) them then the original sort (by state-zip-
city) is lost. I want to keep the original sort and then how do I
introduce more columns into the sort? Thanks.



[email protected]

Sort (again)
 
On Feb 22, 5:54 pm, Toppers wrote:
My reading of your requirement would be:

Highlight all data
Data=Sort
Sort by au_lname, au_fname
Data==Sort
Sort by State, Zip,City

My results:

au_id au_lname au_fname Phone Address City State Zip contract
172-32-1176 White Johnson 408496-7223 10932 Bigge Rd. Menlo Park CA 94025 1
486-29-1786 Locksley Charlene 415585-4620 18 Broadway
Av. SanFrancisco CA 94130 1
427-17-2319 Dull Ann 415836-7128 3410 Blonde St. Palo Alto CA 94301 1
846-92-7186 Hunter Sheryl 415836-7128 3410 Blonde St. Palo Alto CA 94301 1
672-71-3249 Yokomoto Akiko 415935-4228 3 Silver Ct. Walnut Creek CA 94595 1
756-30-7391 Karsen Livia 415534-9219 5720 McAuley St. Oakland CA 94609 1
274-80-9391 Straight Dean 415834-2919 5420 College Av. Oakland CA 94609 1
724-08-9931 Stringer Dirk 415843-2991 5420 Telegraph Av. Oakland CA 94609 0
724-80-9391 MacFeather Stearns 415354-7128 44 Upland Hts. Oakland CA 94612 1
213-46-8915 Green Marjorie 415986-7020 309 63rd St. #$11 Oakland CA 94618 1
409-56-7008 Bennet Abraham 415658-9932 6223 Bateman St. Berkeley CA 94705 1
238-95-7766 Carson Cheryl 415548-7723 589 Darwin Ln. Berkeley CA 94705 1
267-41-2394 O'Leary Michael 408286-2428 22 Cleveland Av. #14 San
Jose CA 95128 1
472-27-2349 Gringlesby Burt 707938-6445 PO Box 792 Covelo CA 95428 1
893-72-1158 McBadden Heather 707448-4982 301 Putnam Vacaville CA 95688 0
722-51-5454 DeFrance Michel 219547-9982 3 Balding Pl. Gary IN 46403 1
341-22-1782 Smith Meander 913843-0462 10 Mississippi Dr. Lawrence KS 66044 0
807-91-6654 Panteley Sylvia 301946-8853 1956 Arlington
Pl. Rockville MD 20853 1
712-45-1867 del Castillo Innes615 996-8275 2286 Cram #86 Ann Arbor MI 48105 1
648-92-1872 Blotchet-Halls Reginald 503745-6402 55 Hillsdale
Bl.Corvallis OR 97330 1
527-72-3246 Greene Morningstar 615297-2723 22 Graybar
House Rd.Nashville TN 37215 0
998-72-3567 Ringer Albert 801826-0752 67 Seventh Av. Salt Lake City UT 84152 1
899-46-2035 Ringer Anne 801826-0752 67 Seventh Av. Salt Lake City UT 84152 1



" wrote:
On Feb 22, 4:16 pm, Toppers wrote:
you can sort by the 3 most minor, then sort by the 3 major fields.


That'll be 2 different data|sorts.


HTH


" wrote:
I have the following table and I want to sort the rows by state, zip,
city, au_lanme, au_fname, phone, address, contract


Using excel sort I can only sort on stae, zip and city. How to include
au-Name and the rest?
Thanks.


au_id au_lname au_fname phone address city state zip contract
172-32-1176 White Johnson 408 496-7223 10932 Bigge Rd. Menlo Park CA
94025 1
486-29-1786 Locksley Charlene 415 585-4620 18 Broadway Av. San
Francisco CA 94130 1
427-17-2319 Dull Ann 415 836-7128 3410 Blonde St. Palo Alto CA 94301 1
846-92-7186 Hunter Sheryl 415 836-7128 3410 Blonde St. Palo Alto CA
94301 1
672-71-3249 Yokomoto Akiko 415 935-4228 3 Silver Ct. Walnut Creek CA
94595 1
756-30-7391 Karsen Livia 415 534-9219 5720 McAuley St. Oakland CA
94609 1
274-80-9391 Straight Dean 415 834-2919 5420 College Av. Oakland CA
94609 1
724-08-9931 Stringer Dirk 415 843-2991 5420 Telegraph Av. Oakland CA
94609 0
724-80-9391 MacFeather Stearns 415 354-7128 44 Upland Hts. Oakland CA
94612 1
213-46-8915 Green Marjorie 415 986-7020 309 63rd St. #411 Oakland CA
94618 1
409-56-7008 Bennet Abraham 415 658-9932 6223 Bateman St. Berkeley CA
94705 1
238-95-7766 Carson Cheryl 415 548-7723 589 Darwin Ln. Berkeley CA
94705 1
267-41-2394 O'Leary Michael 408 286-2428 22 Cleveland Av. #14 San Jose
CA 95128 1
472-27-2349 Gringlesby Burt 707 938-6445 PO Box 792 Covelo CA 95428 1
893-72-1158 McBadden Heather 707 448-4982 301 Putnam Vacaville CA
95688 0
722-51-5454 DeFrance Michel 219 547-9982 3 Balding Pl. Gary IN 46403 1
341-22-1782 Smith Meander 913 843-0462 10 Mississippi Dr. Lawrence KS
66044 0
807-91-6654 Panteley Sylvia 301 946-8853 1956 Arlington Pl. Rockville
MD 20853 1
712-45-1867 del Castillo Innes 615 996-8275 2286 Cram Pl. #86 Ann
Arbor MI 48105 1
648-92-1872 Blotchet-Halls Reginald 503 745-6402 55 Hillsdale Bl.
Corvallis OR 97330 1
527-72-3246 Greene Morningstar 615 297-2723 22 Graybar House Rd.
Nashville TN 37215 0
899-46-2035 Ringer Anne 801 826-0752 67 Seventh Av. Salt Lake City UT
84152 1
998-72-3567 Ringer Albert 801 826-0752 67 Seventh Av. Salt Lake City
UT 84152 1- Hide quoted text -


- Show quoted text -


How? First I sorted them by state, zip, city. Then if I try to re-sort
(using au_id, au_lname etc) them then the original sort (by state-zip-
city) is lost. I want to keep the original sort and then how do I
introduce more columns into the sort? Thanks.- Hide quoted text -


- Show quoted text -


Okay. Here is the data (unsorted):
au_id au_fname au_lname phone address city state zip contract
172-32-1176 White Johnson 408 496-7223 10932 Bigge Rd. Menlo Park CA
94025 1
213-46-8915 Green Marjorie 415 986-7020 309 63rd St. #411 Oakland CA
94618 1
238-95-7766 Carson Cheryl 415 548-7723 589 Darwin Ln. Berkeley CA
94705 1
267-41-2394 O'Leary Michael 408 286-2428 22 Cleveland Av. #14 San Jose
CA 95128 1
274-80-9391 Straight Dean 415 834-2919 5420 College Av. Oakland CA
94609 1
341-22-1782 Smith Meander 913 843-0462 10 Mississippi Dr. Lawrence KS
66044 0
409-56-7008 Bennet Abraham 415 658-9932 6223 Bateman St. Berkeley CA
94705 1
427-17-2319 Dull Ann 415 836-7128 3410 Blonde St. Palo Alto CA 94301 1
472-27-2349 Gringlesby Burt 707 938-6445 PO Box 792 Covelo CA 95428 1
486-29-1786 Locksley Charlene 415 585-4620 18 Broadway Av. San
Francisco CA 94130 1
527-72-3246 Greene Morningstar 615 297-2723 22 Graybar House Rd.
Nashville TN 37215 0
648-92-1872 Blotchet-Halls Reginald 503 745-6402 55 Hillsdale Bl.
Corvallis OR 97330 1
672-71-3249 Yokomoto Akiko 415 935-4228 3 Silver Ct. Walnut Creek CA
94595 1
712-45-1867 del Castillo Innes 615 996-8275 2286 Cram Pl. #86 Ann
Arbor MI 48105 1
722-51-5454 DeFrance Michel 219 547-9982 3 Balding Pl. Gary IN 46403 1
724-08-9931 Stringer Dirk 415 843-2991 5420 Telegraph Av. Oakland CA
94609 0
724-80-9391 MacFeather Stearns 415 354-7128 44 Upland Hts. Oakland CA
94612 1
756-30-7391 Karsen Livia 415 534-9219 5720 McAuley St. Oakland CA
94609 1
807-91-6654 Panteley Sylvia 301 946-8853 1956 Arlington Pl. Rockville
MD 20853 1
846-92-7186 Hunter Sheryl 415 836-7128 3410 Blonde St. Palo Alto CA
94301 1
893-72-1158 McBadden Heather 707 448-4982 301 Putnam Vacaville CA
95688 0
899-46-2035 Ringer Anne 801 826-0752 67 Seventh Av. Salt Lake City UT
84152 1
998-72-3567 Ringer Albert 801 826-0752 67 Seventh Av. Salt Lake City
UT 84152 1

Here is the data that is requirement after the final sort (I could not
get excel to produce this output):
au_id au_fname au_lname phone address city state zip contract
409-56-7008 Bennet Abraham 415 658-9932 6223 Bateman St. Berkeley CA
94705 1
648-92-1872 Blotchet-Halls Reginald 503 745-6402 55 Hillsdale Bl.
Corvallis OR 97330 1
238-95-7766 Carson Cheryl 415 548-7723 589 Darwin Ln. Berkeley CA
94705 1
722-51-5454 DeFrance Michel 219 547-9982 3 Balding Pl. Gary IN 46403 1
712-45-1867 del Castillo Innes 615 996-8275 2286 Cram Pl. #86 Ann
Arbor MI 48105 1
427-17-2319 Dull Ann 415 836-7128 3410 Blonde St. Palo Alto CA 94301 1
213-46-8915 Green Marjorie 415 986-7020 309 63rd St. #411 Oakland CA
94618 1
527-72-3246 Greene Morningstar 615 297-2723 22 Graybar House Rd.
Nashville TN 37215 0
472-27-2349 Gringlesby Burt 707 938-6445 PO Box 792 Covelo CA 95428 1
846-92-7186 Hunter Sheryl 415 836-7128 3410 Blonde St. Palo Alto CA
94301 1
756-30-7391 Karsen Livia 415 534-9219 5720 McAuley St. Oakland CA
94609 1
486-29-1786 Locksley Charlene 415 585-4620 18 Broadway Av. San
Francisco CA 94130 1
724-80-9391 MacFeather Stearns 415 354-7128 44 Upland Hts. Oakland CA
94612 1
893-72-1158 McBadden Heather 707 448-4982 301 Putnam Vacaville CA
95688 0
267-41-2394 O'Leary Michael 408 286-2428 22 Cleveland Av. #14 San Jose
CA 95128 1
807-91-6654 Panteley Sylvia 301 946-8853 1956 Arlington Pl. Rockville
MD 20853 1
998-72-3567 Ringer Albert 801 826-0752 67 Seventh Av. Salt Lake City
UT 84152 1
899-46-2035 Ringer Anne 801 826-0752 67 Seventh Av. Salt Lake City UT
84152 1
341-22-1782 Smith Meander 913 843-0462 10 Mississippi Dr. Lawrence KS
66044 0
274-80-9391 Straight Dean 415 834-2919 5420 College Av. Oakland CA
94609 1
724-08-9931 Stringer Dirk 415 843-2991 5420 Telegraph Av. Oakland CA
94609 0
172-32-1176 White Johnson 408 496-7223 10932 Bigge Rd. Menlo Park CA
94025 1
672-71-3249 Yokomoto Akiko 415 935-4228 3 Silver Ct. Walnut Creek CA
94595 1

As you can see the sort order is:
select *
from authors
order by au_lname,au_fname,state,zip,city,phone,au_id

When I use excel using your suggestion after the first sort by
au_lname and au_fname I get the page sorted. Then when I apply the
second sort:
state,zip,city
The previous sort (au_lname,au_fname) is disordered.


[email protected]

Sort (again)
 
On Feb 22, 5:54 pm, Toppers wrote:
My reading of your requirement would be:

Highlight all data
Data=Sort
Sort by au_lname, au_fname
Data==Sort
Sort by State, Zip,City

My results:

au_id au_lname au_fname Phone Address City State Zip contract
172-32-1176 White Johnson 408496-7223 10932 Bigge Rd. Menlo Park CA 94025 1
486-29-1786 Locksley Charlene 415585-4620 18 Broadway
Av. SanFrancisco CA 94130 1
427-17-2319 Dull Ann 415836-7128 3410 Blonde St. Palo Alto CA 94301 1
846-92-7186 Hunter Sheryl 415836-7128 3410 Blonde St. Palo Alto CA 94301 1
672-71-3249 Yokomoto Akiko 415935-4228 3 Silver Ct. Walnut Creek CA 94595 1
756-30-7391 Karsen Livia 415534-9219 5720 McAuley St. Oakland CA 94609 1
274-80-9391 Straight Dean 415834-2919 5420 College Av. Oakland CA 94609 1
724-08-9931 Stringer Dirk 415843-2991 5420 Telegraph Av. Oakland CA 94609 0
724-80-9391 MacFeather Stearns 415354-7128 44 Upland Hts. Oakland CA 94612 1
213-46-8915 Green Marjorie 415986-7020 309 63rd St. #$11 Oakland CA 94618 1
409-56-7008 Bennet Abraham 415658-9932 6223 Bateman St. Berkeley CA 94705 1
238-95-7766 Carson Cheryl 415548-7723 589 Darwin Ln. Berkeley CA 94705 1
267-41-2394 O'Leary Michael 408286-2428 22 Cleveland Av. #14 San
Jose CA 95128 1
472-27-2349 Gringlesby Burt 707938-6445 PO Box 792 Covelo CA 95428 1
893-72-1158 McBadden Heather 707448-4982 301 Putnam Vacaville CA 95688 0
722-51-5454 DeFrance Michel 219547-9982 3 Balding Pl. Gary IN 46403 1
341-22-1782 Smith Meander 913843-0462 10 Mississippi Dr. Lawrence KS 66044 0
807-91-6654 Panteley Sylvia 301946-8853 1956 Arlington
Pl. Rockville MD 20853 1
712-45-1867 del Castillo Innes615 996-8275 2286 Cram #86 Ann Arbor MI 48105 1
648-92-1872 Blotchet-Halls Reginald 503745-6402 55 Hillsdale
Bl.Corvallis OR 97330 1
527-72-3246 Greene Morningstar 615297-2723 22 Graybar
House Rd.Nashville TN 37215 0
998-72-3567 Ringer Albert 801826-0752 67 Seventh Av. Salt Lake City UT 84152 1
899-46-2035 Ringer Anne 801826-0752 67 Seventh Av. Salt Lake City UT 84152 1



" wrote:
On Feb 22, 4:16 pm, Toppers wrote:
you can sort by the 3 most minor, then sort by the 3 major fields.


That'll be 2 different data|sorts.


HTH


" wrote:
I have the following table and I want to sort the rows by state, zip,
city, au_lanme, au_fname, phone, address, contract


Using excel sort I can only sort on stae, zip and city. How to include
au-Name and the rest?
Thanks.


au_id au_lname au_fname phone address city state zip contract
172-32-1176 White Johnson 408 496-7223 10932 Bigge Rd. Menlo Park CA
94025 1
486-29-1786 Locksley Charlene 415 585-4620 18 Broadway Av. San
Francisco CA 94130 1
427-17-2319 Dull Ann 415 836-7128 3410 Blonde St. Palo Alto CA 94301 1
846-92-7186 Hunter Sheryl 415 836-7128 3410 Blonde St. Palo Alto CA
94301 1
672-71-3249 Yokomoto Akiko 415 935-4228 3 Silver Ct. Walnut Creek CA
94595 1
756-30-7391 Karsen Livia 415 534-9219 5720 McAuley St. Oakland CA
94609 1
274-80-9391 Straight Dean 415 834-2919 5420 College Av. Oakland CA
94609 1
724-08-9931 Stringer Dirk 415 843-2991 5420 Telegraph Av. Oakland CA
94609 0
724-80-9391 MacFeather Stearns 415 354-7128 44 Upland Hts. Oakland CA
94612 1
213-46-8915 Green Marjorie 415 986-7020 309 63rd St. #411 Oakland CA
94618 1
409-56-7008 Bennet Abraham 415 658-9932 6223 Bateman St. Berkeley CA
94705 1
238-95-7766 Carson Cheryl 415 548-7723 589 Darwin Ln. Berkeley CA
94705 1
267-41-2394 O'Leary Michael 408 286-2428 22 Cleveland Av. #14 San Jose
CA 95128 1
472-27-2349 Gringlesby Burt 707 938-6445 PO Box 792 Covelo CA 95428 1
893-72-1158 McBadden Heather 707 448-4982 301 Putnam Vacaville CA
95688 0
722-51-5454 DeFrance Michel 219 547-9982 3 Balding Pl. Gary IN 46403 1
341-22-1782 Smith Meander 913 843-0462 10 Mississippi Dr. Lawrence KS
66044 0
807-91-6654 Panteley Sylvia 301 946-8853 1956 Arlington Pl. Rockville
MD 20853 1
712-45-1867 del Castillo Innes 615 996-8275 2286 Cram Pl. #86 Ann
Arbor MI 48105 1
648-92-1872 Blotchet-Halls Reginald 503 745-6402 55 Hillsdale Bl.
Corvallis OR 97330 1
527-72-3246 Greene Morningstar 615 297-2723 22 Graybar House Rd.
Nashville TN 37215 0
899-46-2035 Ringer Anne 801 826-0752 67 Seventh Av. Salt Lake City UT
84152 1
998-72-3567 Ringer Albert 801 826-0752 67 Seventh Av. Salt Lake City
UT 84152 1- Hide quoted text -


- Show quoted text -


How? First I sorted them by state, zip, city. Then if I try to re-sort
(using au_id, au_lname etc) them then the original sort (by state-zip-
city) is lost. I want to keep the original sort and then how do I
introduce more columns into the sort? Thanks.- Hide quoted text -


- Show quoted text -


Hi,
Thanks, you are correct.


[email protected]

Sort (again)
 
On Feb 22, 5:54 pm, Toppers wrote:
My reading of your requirement would be:

Highlight all data
Data=Sort
Sort by au_lname, au_fname
Data==Sort
Sort by State, Zip,City

My results:

au_id au_lname au_fname Phone Address City State Zip contract
172-32-1176 White Johnson 408496-7223 10932 Bigge Rd. Menlo Park CA 94025 1
486-29-1786 Locksley Charlene 415585-4620 18 Broadway
Av. SanFrancisco CA 94130 1
427-17-2319 Dull Ann 415836-7128 3410 Blonde St. Palo Alto CA 94301 1
846-92-7186 Hunter Sheryl 415836-7128 3410 Blonde St. Palo Alto CA 94301 1
672-71-3249 Yokomoto Akiko 415935-4228 3 Silver Ct. Walnut Creek CA 94595 1
756-30-7391 Karsen Livia 415534-9219 5720 McAuley St. Oakland CA 94609 1
274-80-9391 Straight Dean 415834-2919 5420 College Av. Oakland CA 94609 1
724-08-9931 Stringer Dirk 415843-2991 5420 Telegraph Av. Oakland CA 94609 0
724-80-9391 MacFeather Stearns 415354-7128 44 Upland Hts. Oakland CA 94612 1
213-46-8915 Green Marjorie 415986-7020 309 63rd St. #$11 Oakland CA 94618 1
409-56-7008 Bennet Abraham 415658-9932 6223 Bateman St. Berkeley CA 94705 1
238-95-7766 Carson Cheryl 415548-7723 589 Darwin Ln. Berkeley CA 94705 1
267-41-2394 O'Leary Michael 408286-2428 22 Cleveland Av. #14 San
Jose CA 95128 1
472-27-2349 Gringlesby Burt 707938-6445 PO Box 792 Covelo CA 95428 1
893-72-1158 McBadden Heather 707448-4982 301 Putnam Vacaville CA 95688 0
722-51-5454 DeFrance Michel 219547-9982 3 Balding Pl. Gary IN 46403 1
341-22-1782 Smith Meander 913843-0462 10 Mississippi Dr. Lawrence KS 66044 0
807-91-6654 Panteley Sylvia 301946-8853 1956 Arlington
Pl. Rockville MD 20853 1
712-45-1867 del Castillo Innes615 996-8275 2286 Cram #86 Ann Arbor MI 48105 1
648-92-1872 Blotchet-Halls Reginald 503745-6402 55 Hillsdale
Bl.Corvallis OR 97330 1
527-72-3246 Greene Morningstar 615297-2723 22 Graybar
House Rd.Nashville TN 37215 0
998-72-3567 Ringer Albert 801826-0752 67 Seventh Av. Salt Lake City UT 84152 1
899-46-2035 Ringer Anne 801826-0752 67 Seventh Av. Salt Lake City UT 84152 1



" wrote:
On Feb 22, 4:16 pm, Toppers wrote:
you can sort by the 3 most minor, then sort by the 3 major fields.


That'll be 2 different data|sorts.


HTH


" wrote:
I have the following table and I want to sort the rows by state, zip,
city, au_lanme, au_fname, phone, address, contract


Using excel sort I can only sort on stae, zip and city. How to include
au-Name and the rest?
Thanks.


au_id au_lname au_fname phone address city state zip contract
172-32-1176 White Johnson 408 496-7223 10932 Bigge Rd. Menlo Park CA
94025 1
486-29-1786 Locksley Charlene 415 585-4620 18 Broadway Av. San
Francisco CA 94130 1
427-17-2319 Dull Ann 415 836-7128 3410 Blonde St. Palo Alto CA 94301 1
846-92-7186 Hunter Sheryl 415 836-7128 3410 Blonde St. Palo Alto CA
94301 1
672-71-3249 Yokomoto Akiko 415 935-4228 3 Silver Ct. Walnut Creek CA
94595 1
756-30-7391 Karsen Livia 415 534-9219 5720 McAuley St. Oakland CA
94609 1
274-80-9391 Straight Dean 415 834-2919 5420 College Av. Oakland CA
94609 1
724-08-9931 Stringer Dirk 415 843-2991 5420 Telegraph Av. Oakland CA
94609 0
724-80-9391 MacFeather Stearns 415 354-7128 44 Upland Hts. Oakland CA
94612 1
213-46-8915 Green Marjorie 415 986-7020 309 63rd St. #411 Oakland CA
94618 1
409-56-7008 Bennet Abraham 415 658-9932 6223 Bateman St. Berkeley CA
94705 1
238-95-7766 Carson Cheryl 415 548-7723 589 Darwin Ln. Berkeley CA
94705 1
267-41-2394 O'Leary Michael 408 286-2428 22 Cleveland Av. #14 San Jose
CA 95128 1
472-27-2349 Gringlesby Burt 707 938-6445 PO Box 792 Covelo CA 95428 1
893-72-1158 McBadden Heather 707 448-4982 301 Putnam Vacaville CA
95688 0
722-51-5454 DeFrance Michel 219 547-9982 3 Balding Pl. Gary IN 46403 1
341-22-1782 Smith Meander 913 843-0462 10 Mississippi Dr. Lawrence KS
66044 0
807-91-6654 Panteley Sylvia 301 946-8853 1956 Arlington Pl. Rockville
MD 20853 1
712-45-1867 del Castillo Innes 615 996-8275 2286 Cram Pl. #86 Ann
Arbor MI 48105 1
648-92-1872 Blotchet-Halls Reginald 503 745-6402 55 Hillsdale Bl.
Corvallis OR 97330 1
527-72-3246 Greene Morningstar 615 297-2723 22 Graybar House Rd.
Nashville TN 37215 0
899-46-2035 Ringer Anne 801 826-0752 67 Seventh Av. Salt Lake City UT
84152 1
998-72-3567 Ringer Albert 801 826-0752 67 Seventh Av. Salt Lake City
UT 84152 1- Hide quoted text -


- Show quoted text -


How? First I sorted them by state, zip, city. Then if I try to re-sort
(using au_id, au_lname etc) them then the original sort (by state-zip-
city) is lost. I want to keep the original sort and then how do I
introduce more columns into the sort? Thanks.- Hide quoted text -


- Show quoted text -


Thanks!



All times are GMT +1. The time now is 12:32 PM.

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