We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Help with Excel

inmypocketnottheirs
Posts: 4,745 Forumite


in Techie Stuff
Hi
I am using Excel as a stock and price list. I have around 500 items on the list, and for historical reasons certain parts of the item numbers hold different information.
An example would be 06JSC5119
At the moment, all items are sorted reading left to right, so they are sorted 06, then JSC, then 5119.
Can I set Excel to sort by just using the last four digits, and if so how do I do this please?
Many thanks
Phil:beer:
I am using Excel as a stock and price list. I have around 500 items on the list, and for historical reasons certain parts of the item numbers hold different information.
An example would be 06JSC5119
At the moment, all items are sorted reading left to right, so they are sorted 06, then JSC, then 5119.
Can I set Excel to sort by just using the last four digits, and if so how do I do this please?
Many thanks
Phil:beer:
Don't lie, thieve, cheat or steal. The Government do not like the competition.
The Lord Giveth and the Government Taketh Away.
I'm sorry, I don't apologise. That's just the way I am. Homer (Simpson)
The Lord Giveth and the Government Taketh Away.
I'm sorry, I don't apologise. That's just the way I am. Homer (Simpson)
0
Comments
-
Make another column. Use the function "= right(cell_number,4)"
where "cell number" is a cell reference, like A1.
ie: make the cell content the right hand 4 characters of the normal part number cell.Then sort the spreadsheet using that column.Happy chappy0 -
inmypocketnottheirs wrote:Can I set Excel to sort by just using the last four digits, and if so how do I do this please?
I suspect you'd have to add a second column containing just the last 4 characters (e.g. if value in cell A1, put =RIGHT(A1,4) in B1, etc...). Then sort both columns by the new second column.Stompa0 -
Remember to copy that formula down and select all the data in the rows before you press sort. If you only choose one column then it will only sort THAT column.
Easy mistake to do!0 -
Thanks to both for these replies. Perhaps I should also have said I have absolutely no knowledge of excel at all, this list just gets emailed to me. Is there anyway I can edit an existing list to just ignore the first 5 characters, i.e. just the 06JSC part?
Many thanksDon't lie, thieve, cheat or steal. The Government do not like the competition.
The Lord Giveth and the Government Taketh Away.
I'm sorry, I don't apologise. That's just the way I am. Homer (Simpson)0 -
Doing what the other two have said will create a new column (list) with just the last four digits in. Therfore you have ignored the first 5 digits.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 351.7K Banking & Borrowing
- 253.4K Reduce Debt & Boost Income
- 454K Spending & Discounts
- 244.7K Work, Benefits & Business
- 600.1K Mortgages, Homes & Bills
- 177.3K Life & Family
- 258.4K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.2K Discuss & Feedback
- 37.6K Read-Only Boards