Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Kim Kim is offline
external usenet poster
 
Posts: 284
Default sorting text & numbers

How can I sort text followed by a number? My project is creating an
inventory of more than 1200 unnamed jpg's. I have many pictures of an
'event' and need a distinguishing number after the name for sorting purposes.
I have 11 pictures of an event. When I sort I get "name - 1, name - 10,
name - 11, name - 2". Can I get Excel to treat the number following the name
as a number?

I'm using Excel 2007.

Thanks for any help..........

Kim
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default sorting text & numbers

You need to isolate the number. If you labels are in column A, then in B1:

=--RIGHT(A1,LEN(A1)-FIND(" - ",A1)-2)

So if A1 has:
fgteyci - 567
then B1 will show
567

Now you can sort columns A & B by B.
--
Gary''s Student - gsnu200858


"Kim" wrote:

How can I sort text followed by a number? My project is creating an
inventory of more than 1200 unnamed jpg's. I have many pictures of an
'event' and need a distinguishing number after the name for sorting purposes.
I have 11 pictures of an event. When I sort I get "name - 1, name - 10,
name - 11, name - 2". Can I get Excel to treat the number following the name
as a number?

I'm using Excel 2007.

Thanks for any help..........

Kim

  #3   Report Post  
Posted to microsoft.public.excel.misc
Kim Kim is offline
external usenet poster
 
Posts: 284
Default sorting text & numbers

Thanks! Glad I didn't miss an obscure option somewhere. I'll give it a whirl.

Kim

"Gary''s Student" wrote:

You need to isolate the number. If you labels are in column A, then in B1:

=--RIGHT(A1,LEN(A1)-FIND(" - ",A1)-2)

So if A1 has:
fgteyci - 567
then B1 will show
567

Now you can sort columns A & B by B.
--
Gary''s Student - gsnu200858


"Kim" wrote:

How can I sort text followed by a number? My project is creating an
inventory of more than 1200 unnamed jpg's. I have many pictures of an
'event' and need a distinguishing number after the name for sorting purposes.
I have 11 pictures of an event. When I sort I get "name - 1, name - 10,
name - 11, name - 2". Can I get Excel to treat the number following the name
as a number?

I'm using Excel 2007.

Thanks for any help..........

Kim

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 numbers with text dena320 New Users to Excel 2 June 25th 08 05:06 PM
Help sorting text as numbers [email protected] Excel Worksheet Functions 1 November 13th 07 03:34 AM
Sorting (Numbers with Text) JSpence2003 Excel Discussion (Misc queries) 8 August 31st 07 10:30 PM
Sorting numbers as Text David M. New Users to Excel 6 July 25th 06 05:46 PM
SORTING TEXT AND NUMBERS jstephenson Excel Worksheet Functions 5 February 10th 06 08:44 PM


All times are GMT +1. The time now is 02:08 PM.

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"