Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Connie Martin
 
Posts: n/a
Default Sorting hyphenated numbers

How do you sort a list of hyphenated and non-hyphenated numbers so that
2079-1 comes before 2121?

Connie Martin
  #2   Report Post  
Max
 
Posts: n/a
Default

Try sorting the list on an adjacent helper col

Assuming the list is in col A, A1 down

Put in B1: =TEXT(A1,"@")
Copy down

Then sort both cols A and B by col B Ascending

This should return the results ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Connie Martin" wrote in message
...
How do you sort a list of hyphenated and non-hyphenated numbers so that
2079-1 comes before 2121?

Connie Martin



  #3   Report Post  
Connie Martin
 
Posts: n/a
Default

Thank you. That works. I put the column outside the print area. I was
hoping there would be a list one could create and then sort by it, but I
guess not.

Thanks again
Connie Martin

"Max" wrote:

Try sorting the list on an adjacent helper col

Assuming the list is in col A, A1 down

Put in B1: =TEXT(A1,"@")
Copy down

Then sort both cols A and B by col B Ascending

This should return the results ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Connie Martin" wrote in message
...
How do you sort a list of hyphenated and non-hyphenated numbers so that
2079-1 comes before 2121?

Connie Martin




  #4   Report Post  
Max
 
Posts: n/a
Default

You're welcome !
Thanks for posting back
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Connie Martin" wrote in message
...
Thank you. That works. I put the column outside the print area. I was
hoping there would be a list one could create and then sort by it, but I
guess not.

Thanks again
Connie Martin



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 102
Default Sorting hyphenated numbers

Hi Max

Have been reading your replies to the question from Connie which has been
great so far - but I have hit a brick wall. I am using hyphenated and unique
numbering which I have sorted into the order I want (see below), used your
additional column and added =TEXT(C2,"@").
What I want to do now is create a macro so that on the press of a button I
can have the whole sheet auto sort (which with usual numbering works really
well) ie new entry entered hit CTRL o and everything auto sorts. But in this
case data already in teh sheet stays in the order I manually entered BUT new
new entries remain at the bottom and don't update - do you know what I'm
missing please?
07074
07075
07076
07076-01
07076-02
07C08-001
07C08-002

--
Many thanks

Lise


"Max" wrote:

You're welcome !
Thanks for posting back
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Connie Martin" wrote in message
...
Thank you. That works. I put the column outside the print area. I was
hoping there would be a list one could create and then sort by it, but I
guess not.

Thanks again
Connie Martin






  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sorting hyphenated numbers

Pl start a new thread. This thread is long closed.
Try posting in .programming if your query is on macros.
Good luck
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---


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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
Convert text to numbers gennario Excel Discussion (Misc queries) 6 January 10th 05 11:56 PM
Sorting when some numbers have a text suffix confused on the tundra Excel Discussion (Misc queries) 5 December 18th 04 10:19 PM
Sorting imported "numbers" Confused on the tundra Excel Discussion (Misc queries) 5 December 17th 04 07:33 PM
Paste rows of numbers from Word into single Excel cell BecG Excel Discussion (Misc queries) 1 December 8th 04 04:55 PM


All times are GMT +1. The time now is 01:53 PM.

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"