How to avoid formulas from referencing wrong cells after sorting the table in Numbers?

After sorting the table, all my formulas' referencing gets jumbled up. Is there a way or a workaround to avoid this? Weird that this is still in an issue in 2024?

Not very skilled in spreadsheets, but can follow if steps provided.

Thanks in advance for your help!


Mac Studio (2022)

Posted on Jan 19, 2024 5:30 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 20, 2024 5:58 AM

Okay, now I see what you are getting at. Each row of a table is a treated like a "record" in a database and the entire record stays together during a sort. Your goal is to leave part of the record behind in its original row.


In Excel you can sort part of the table, excluding some columns. Numbers does not have that capability. One solution is to put that column of references in a different table. The two tables can be butted up together to look like one. Another solution is to lift that column from the table before sorting then put it back in afterward. It takes a few steps to do this so might not be practical if you are sorting a lot. There may be other solutions but I think it will depend upon whether your cell references follow any kind of pattern that can be recreated with formulas (using OFFSET, INDIRECT, etc., perhaps combined with ROW) versus them being kind of random.



17 replies

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.

How to avoid formulas from referencing wrong cells after sorting the table in Numbers?

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