Question about sorting based on the last numerals of a code in a column

I need some help either sorting or filtering a list. There is one column with a long numerical code, and I need to sort the list based on the last seven digits of this code. Is this possible? If so, how?
Any help or insight would be greatly appreciated!
Thank you,
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saurabh Singh TeotiaCommented:
Let's say in A1 you have your digits then in B1 apply this formula..


Open in new window

This will give you the 7 digits from the right side and then you can play around with this to do what you are looking for..


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jennggAuthor Commented:
Thank you!

A few questions:
1. Will this formula need to be repeated for each row?
2. If there is already a B row will I need to create a new one in which to enter the formula?

Thanks again
Saurabh Singh TeotiaCommented:
Here your replies..

1. Yes it needs to be created for each row and you can simply drop down it will update the formula automatically when you drag it for the relevant cell.

2. Yes apply this formula in the empty cell or column where you can apply it..and you can refer to the right cell like in this case im referring it to can change basis of your needs..

the column with the =Right() formula can be a hidden column.
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.