Can data be sorted by the length in a field

N

NanAnn58

Swithching to a new computer system at work and the current description field
has 35 characters and the new description field only has 30. I am trying to
sort the original description field that I dumped into excel by the length of
the field. Is this possible?
 
J

JoeU2004

NanAnn58 said:
I am trying to sort the original description field that I dumped into
excel by the length of the field. Is this possible?

Depends on your constraints. I would create a parallel column or row of
helper cells, fill it with =LEN(A1) etc, then sort the pair of columns or
rows by the helper cells.

Alternatively, you could write a macro.


----- original message -----
 
G

Gary''s Student

Use a helper column. Say the text data is in column A. In B1 entrer:
=LEN(A1) and copy down. Then sort cols A & B by B.
 
D

David Biddulph

Add a helper column, with the formula =LEN(A2) and copied down.
Select your full ranmge of data, including all the rows & columns you want
including, and sort by the new helper column.
 
N

NanAnn58

Thanks, worked perfectly.

Gary''s Student said:
Use a helper column. Say the text data is in column A. In B1 entrer:
=LEN(A1) and copy down. Then sort cols 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