Re: Sorting character length Numbers 3.0

I would like to sort a list of words by character length.


If I start with this.

Pillow

Sheet

Fan

Curtain

Desk


It would look like this.

Fan

Desk

Sheet

Pillow

Curtain


I'm using Numbers 3.6.2 with OSX 10.10.5.


Thank you for looking at my question.

Todd

MacBook Pro (13-inch Mid 2009), OS X Yosemite (10.10.5)

Posted on Aug 3, 2016 6:26 PM

Reply
4 replies

Aug 3, 2016 7:11 PM in response to midwestguymac

User uploaded file


In any other column (I chose the column right after the column with the words), enter the formula as follows. To follow this example use columns B and C


C3=LEN(B3)

this is shorthand for... select cell C3, then type (or copy and paste from here) the formula:

=LEN(B3)


select cell C3, copy

select cells C3 thru the last cell needed (in this case C7), paste


now sort by column C by hovering the cursor over the column header (the "C" at the top of the column) until the down-facing carat appears. Then click and hold to bring up the context menu and select "Sort Ascending":

User uploaded file


User uploaded file

User uploaded file

Aug 4, 2016 2:00 PM in response to midwestguymac

Hi 'mac


Here's a refinement that lets you do a secondary alphabetic sort within the groups defined by the length sort.

Sorting individually by columns won't do this—each sort by that method is independent, and overrides the previous sort. To do a hierarchical sort, you need to use the Sort section of the Sort & Filter Inspector.


User uploaded file

For the middle table, only one sort rule was applied:

User uploaded file

The result is that all words are grouped in order of increasing length. Within a single length, the words remain in the same order as they were in the original list.


In the table to the right, two sorting rules were applied. The first groups the words by length; the second sorts each group into alphabetical order.

User uploaded file

Which rule set is best in your case depends on how thorough a sort you want.


Regards,

Barry

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Re: Sorting character length Numbers 3.0

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.