Share via

Sorting Numbers with Dashes

Anonymous
2017-06-14T15:31:44+00:00

I have a combination of inventory part numbers that are either 6 digit or 6 digit with - and two more digits. Example:

131357 and 131357-01. How can I sort this list as a whole to integrate the -XX numbers with the 6 digit numbers? I want to get this result:

291678-03
291678-04
291734
291747
291753
291756-01
291764
291810

Thank you!

Microsoft 365 and Office | Excel | For home | Windows

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

Answer accepted by question author

Anonymous
2017-06-14T17:03:48+00:00

I used two helper columns.

I sort by fields Left and Right

The inset shows the starting data

best wishes

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2017-06-14T17:58:06+00:00

    Great! Thank you so much for your time!

    Was this answer helpful?

    0 comments No comments