Share via

Client record numbers shift when resorted in Excel Sheet View

Gail Nampel 0 Reputation points
2023-12-15T12:58:10.1066667+00:00

We use Excel to store client data for our Food Pantry. When a client calls, we enter the date and pickup time so our packers can have their food ready when the client arrives. Each client has a record number that is used for the sole purpose of printing a label to place on the box.

The packers use sheet view and hide columns that are not necessary for them to fill the order. Their view is filtered by date and includes: Client number, name, number of adults and children in household, ages of the kids, pickup time, and specific client notes-like dietary restrictions.

They sort by pickup time to help prioritize their work. However, when they sort, the assigned record number doesn’t always follow the client. If caller one picks up at 9:00, caller 2 at 10:00, and caller 3 at 9:30, it seems to go wrong when inserting a time BETWEEN times already displayed

I recently converted all the data in the sheet to a table hoping that would eliminate the problem, but no such luck. I should mention that I use ROW(**) to auto assign record numbers

Any help would be appreciated.

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
0 comments No comments

1 answer

Sort by: Most helpful
  1. Danish Gul Khattak 335 Reputation points
    2023-12-16T08:55:44.26+00:00

    It sounds like the issue might be related to the sorting behavior in Excel tables. When you insert a new row between existing rows, the formulas might not automatically update as expected.

    One way to handle this is by using the SORT function directly on the data, rather than relying on sorting through the Excel interface. This way, the entire row, including the assigned record number, should stay together.

    Assuming your data is in a table named "YourTable," you can use a formula like this to create a sorted view:=SORT(YourTable, 6, 1)

    Here, "6" represents the column number where the pickup time is located, and "1" indicates sorting in ascending order. Adjust the column number accordingly.

    This formula creates a dynamic sorted view of your table that should update automatically when new data is added. It preserves the relationships between the record number and the corresponding client data during sorting.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.