Sorting?

Is it possible to sort this table assending and keep the name associated with the points?


In addition renumber the position according to the sort ranking.


Would it then be possible to reorder the sort every time the points change as they are read in from another table?


User uploaded file

iMac, OS X Mavericks (10.9)

Posted on Jan 14, 2014 12:14 PM

Reply
84 replies

Jan 14, 2014 12:24 PM in response to dtryon9980

DT,


In Numbers, Sorting always keeps rows intact. Names and the values associated with them will always be in the same orientation after the sort as they were before the sort.


You can create a dynamic numbering by using the ROW() function. If you put the expression:


=ROW()-1 in all the Cells of column A starting at Row 2, your numbering will be preserved.


Automatic reordering is possible, but would take a second table and a lot of code. Best to do it manually by initiating a Sort.


Jerry

Jan 15, 2014 8:15 AM in response to dtryon9980

There is a way. Since you have not posted the specifics of your table I can only provide a general solution. You need to look up the name in column B on the other table and retrieve the points from a different column of the same row.


it would be something like:


In the table you sort

B2=vlookup(A2, <THE RANGE IN THE OTHER TABLE>, <THE NUMBER OF COLUMNS TO THE RIGHT OF THE >, 0)


select B2 and fill down as needed.


If you provide a screenshot of the other table I can provide a specific solution for you.


All the best,

Wayne

Jan 15, 2014 12:49 PM in response to dtryon9980

I'm going to hijack this thread for a second. I was going to make a simple example but got really strange results that I thought maybe someone could explain. Actually, I can explain it myself but it is obviously not what anyone would expect.


The first table uses simple formulas like =Table 2::B2 to get data from the second table.

User uploaded file

After a "sort descending" on column B of Table 1 I get this mess. Column A forumulas are now both =Table 2:A3. Column B formulas are now both =Table 2:B3.


User uploaded file

The explanation is that Table 1 Row 2 moved down one row to Row 3 so the cell references also moved down one row (to Table 2 Row 3). Conversely, Table 1 Row 3 moved up one row so its cell references moved up a row (also to Table 2 Row 3).

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.

Sorting?

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