#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Sorting in Excel

For Example if I have 5+ numbers
90-08-07-100-006.000-010
90-08-05-300-013.000-006
90-02-21-100-014.000-002
90-03-33-200-048.000-004
90-03-35-500-097.000-021

We are preparing a spreadsheet
then we need to sort it in order
just buy the last 3 digits of each
number. Is this possible with out
sorting by the other numbers?

Thanks for your help.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Sorting in Excel

I would suggest having another column.

So, assuming the numbers are in cells A2 - A6, then in B2, enter
=right(A2,3).

Copy the formula down.

Then, do a sort on column B.

"Wells Co Audiotor''s Office" wrote:

For Example if I have 5+ numbers
90-08-07-100-006.000-010
90-08-05-300-013.000-006
90-02-21-100-014.000-002
90-03-33-200-048.000-004
90-03-35-500-097.000-021

We are preparing a spreadsheet
then we need to sort it in order
just buy the last 3 digits of each
number. Is this possible with out
sorting by the other numbers?

Thanks for your help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Sorting in Excel

You could write/record a macro to copy the last 3 digits to the beginning of
each number sequence, then do a sort, then strip them out.
--
Richard

Search the web and raise money for charity at http://www.everyclick.com/


"Wells Co Audiotor''s Office" wrote:

For Example if I have 5+ numbers
90-08-07-100-006.000-010
90-08-05-300-013.000-006
90-02-21-100-014.000-002
90-03-33-200-048.000-004
90-03-35-500-097.000-021

We are preparing a spreadsheet
then we need to sort it in order
just buy the last 3 digits of each
number. Is this possible with out
sorting by the other numbers?

Thanks for your help.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default Sorting in Excel

Wells Co Audiotor''s Office wrote:
For Example if I have 5+ numbers
90-08-07-100-006.000-010
90-08-05-300-013.000-006
90-02-21-100-014.000-002
90-03-33-200-048.000-004
90-03-35-500-097.000-021

We are preparing a spreadsheet
then we need to sort it in order
just buy the last 3 digits of each
number. Is this possible with out
sorting by the other numbers?

Thanks for your help.



You could use a helper cell, in B1

=(MID(A1,22,3))*1 - then drag down

This presumes that the last 3 digits are always in the same place. The *1 is
to change the result to a number so that it can be sorted.

edvwvw

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200806/1

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
Sorting in Excel cockatoo Excel Discussion (Misc queries) 1 October 24th 07 08:53 PM
Sorting VLookup vs Sorting SumProduct Lauren Excel Discussion (Misc queries) 1 August 21st 07 12:19 AM
Excel Sorting [email protected] Excel Discussion (Misc queries) 1 July 19th 06 09:33 AM
Excel and Sorting Justin Excel Discussion (Misc queries) 1 June 16th 05 11:16 PM
excel sorting Baba Excel Worksheet Functions 7 February 23rd 05 03:38 PM


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

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

About Us

"It's about Microsoft Excel"