Sorting in Numbers seems broken, cell data isnt tracked when sorted
So I don't seem to be able to grasp how to get Numbers to sort like I believe it is supposed to.
Let me explain the issue.
I have a spreadsheet with multiple sheets that are interdependent. For this explanation ill say i have two sheets. Sheet A is a sheet with a list of spices and their $/gram. Sheet B is a recipe that lists individual spices listed in Sheet A and gets the value of each spice used by tracking the $/gram cell for each spice in Sheet A.
So sheet A may look like:
Spice $/g
pepper .02
salt .01
Sheet B looks like:
salt 2g .02
pepper 1g .02
When I sort the $/g column in sheet A in ascending order it looks like:
Spice $/g
salt .01
pepper .02
So far so good. However now my sheet B formula is still using the $/g of the actual cell and not tracking that the data for the cell has been moved to a new cell. So while in sheet A cell B3 was .01 it is now .02 which is the cost of pepper, not salt. Salts value moved to cell B2.
The formula in sheet B for salt was =B2*SheetACellB3 but when you sort its like numbers isnt smart enough to know that she value of $/grams for the Salt spice moved, it still uses the the exact same cell regardless of what spice $/g is using that cell after a sort.
Either Numbers is stupid and this is a bug or Im stupid and im not doing something right.
The latter is entirely possible. But everything I know tells me the spreadsheet should track x,y (column, row) when you sort. So that the value for x,y even if it moves, is still used by formulas that depend on that value, and NOT use a static cell to obtain the value, which moves during a sort.
I hope this made sense. I cannot figure out why it wont track the movement of a cell when sorting.
Thank you for any help you can offer here.
MacBook Pro