sorting text & numbers

K

Kim

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
 
G

Gary''s Student

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top