#1   Report Post  
Bill
 
Posts: n/a
Default Sorting

Can anyone help please.

Column a has numbers 1 thru 311
Column b has the names of colours to match the numbers.

What I need to do is to sort the names of colours in column b
alphabetically, but retaining their present numbers, so if at present row
200 is green and row 201 is azure, I want it to go 201 azure, 200 Green. I
want the present numbers to stay with their colour. hope that makes sense.

I can't do it!

Thanks
Bill


  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

Bill: Whenever you sort, as a rule, don't select the area (column) you're
sorting by. If you simple click in, for instance, B2, and hit the sort
button, the numbers should sort right along with the colors (and stay with
them). However, your numbers can't be "calculated". In other words, if you
have 200 in A2, and =A2+1 in A3, you must first convert these formulas to
numbers by copy/edit/paste special, values, OK.
************
Anne Troy
www.OfficeArticles.com

"Bill" wrote in message
...
Can anyone help please.

Column a has numbers 1 thru 311
Column b has the names of colours to match the numbers.

What I need to do is to sort the names of colours in column b
alphabetically, but retaining their present numbers, so if at present row
200 is green and row 201 is azure, I want it to go 201 azure, 200 Green. I
want the present numbers to stay with their colour. hope that makes
sense.

I can't do it!

Thanks
Bill



  #3   Report Post  
Bill
 
Posts: n/a
Default


"Anne Troy" wrote in message
...
Bill: Whenever you sort, as a rule, don't select the area (column) you're
sorting by. If you simple click in, for instance, B2, and hit the sort
button, the numbers should sort right along with the colors (and stay with
them). However, your numbers can't be "calculated". In other words, if you
have 200 in A2, and =A2+1 in A3, you must first convert these formulas to
numbers by copy/edit/paste special, values, OK.
************
Anne Troy
www.OfficeArticles.com

Thanks Anne

That's why they wouldn't sort, I did use a formula to run the numbers down.
I will try and change them to numbers not formula.

Thanks again
Bill


  #4   Report Post  
Anne Troy
 
Posts: n/a
Default

Okay, Bill. Just be sure to select all the cells that contain formulas. Hit
Ctrl+C. Don't move! Then hit Edit--Paste Special, choose Values, and hit
OK. Now the formulas are gone and the numbers remain.
************
Anne Troy
www.OfficeArticles.com

"Bill" wrote in message
...

"Anne Troy" wrote in message
...
Bill: Whenever you sort, as a rule, don't select the area (column) you're
sorting by. If you simple click in, for instance, B2, and hit the sort
button, the numbers should sort right along with the colors (and stay
with them). However, your numbers can't be "calculated". In other words,
if you have 200 in A2, and =A2+1 in A3, you must first convert these
formulas to numbers by copy/edit/paste special, values, OK.
************
Anne Troy
www.OfficeArticles.com

Thanks Anne

That's why they wouldn't sort, I did use a formula to run the numbers
down. I will try and change them to numbers not formula.

Thanks again
Bill




  #5   Report Post  
Bill
 
Posts: n/a
Default


"Bill" wrote in message
...
Can anyone help please.

Column a has numbers 1 thru 311
Column b has the names of colours to match the numbers.

What I need to do is to sort the names of colours in column b
alphabetically, but retaining their present numbers, so if at present row
200 is green and row 201 is azure, I want it to go 201 azure, 200 Green. I
want the present numbers to stay with their colour. hope that makes
sense.

I can't do it!

Thanks
Bill
The sorting is sorted thanks to a good sort on here. Many thanks. Had a
play as well and found out a few other bits.

All the best
Bill




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
sorting non contiguous ranges gsh20 Excel Discussion (Misc queries) 1 September 8th 05 04:50 PM
Sorting 1, 1A, 2, 2A, 3, 4, 4A, 4B . . . agc1234 Excel Discussion (Misc queries) 6 May 26th 05 08:02 PM
sorting number in ascending order Janice Lee via OfficeKB.com Excel Discussion (Misc queries) 2 April 8th 05 10:31 PM
SORTING question Rebecca New Users to Excel 3 February 24th 05 05:35 PM


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

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

About Us

"It's about Microsoft Excel"