Share via

Sort function introduces errors

Anonymous
2018-10-04T17:42:30+00:00

See excel file at this Dropbox link.

References in equations are not sorted properly if there is a TAB REF prefix to a cell local to the current tab.

Excel Bug.xlsx

Microsoft 365 and Office | Excel | For home | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

15 answers

Sort by: Most helpful
  1. Jim G 134K Reputation points MVP Volunteer Moderator
    2018-11-17T15:49:56+00:00

    The thing is, the formula you showed has absolute, not relative references in it.

    Was this answer helpful?

    0 comments No comments
  2. Jim G 134K Reputation points MVP Volunteer Moderator
    2018-11-15T15:08:44+00:00

    Hi

    The dollar sign signifies an absolute reference within a cell formula.

    $C$14 says to ALWAYS refer to column C and ALWAYS refer to cell 14

    Getting rid of the $ before 14 will turn it into a relative reference.

    You can click into the formula within the $C$14 and press F4 to toggle through the various cell reference combinations so you don't have to type them.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2018-11-13T19:15:04+00:00

    If you want to sort an entire Sheet, based on a Particular Cell, choose the entire sheet Workbook to go to sort, and the first criteria Choose cell location column. You can choose A-Z or 10 to 9  or the reverse order. Just sorting on the cell without choosing the entire workbook or the area you want to sort, will mess up your work.  By the way, if you want to sort using multiple criteria you want to put most important as third, next most important second, and final as number one. Say you were sorting by names:

    First would choose the Last name first in the first sort. Name in the second sort.

    __________

    Disclaimer:

    The questions, discussions, opinions, replies & answers I create, are solely mine and mine alone and do not reflect upon my position as a Volunteer Moderator.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2018-11-13T16:39:06+00:00

    Here is the formula:

    =DataTotal!$B$1*'Error Demo'!C10/'Error Demo'!$C$14

    'Error Demo' is the local tab when the SORT is done. Are you saying 'Error Demo'!C10 is an absolute reference? It looks relative to me - right?

    Why would Excel treat this 'Error Demo'!C10 as absolute?

    Was this answer helpful?

    0 comments No comments
  5. Jim G 134K Reputation points MVP Volunteer Moderator
    2018-11-13T16:04:12+00:00

    Hi

    Your cell formulas use absolute, not relative references for row numbers. Try changing the row number references to relative, rather than absolute references.

    Was this answer helpful?

    0 comments No comments