Sorting or Filtering

J

JD

Can someone please help me? I need to sort a column by the number of
digits...not the amount. Some numbers are 6 digits, 8 digits, and then 14
digits. I need to sort them by the number of digits and not the value. Any
ideas?

Thanks
 
D

Dave Peterson

Say your data is in A2:A#### (headers in row 1).

Insert a new column A (a column to help you do something--therefore, a helper
column).

Put a nice header in the new A1:
Length

Then in A2, put Don's formula:
=len(trim(a2))

Then drag that formula down as far as you need (matching the amount of data in
column B).

Then select the entire range and sort your data.

Debra Dalgleish has some tips for that formula entry here:
http://contextures.com/xlDataEntry01.html
and using the mouse to drag down the formula here:
http://contextures.com/xlDataEntry01.html#Mouse
 
D

Don Guillett

It's a simple formula. Perhaps looking in the help index for TRIM would be
of assistance.
 

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