Excel 2min Tip #1: Sort data with the =RIGHT function: by David Carter
When Excel sorts a column of items, it looks at the initial character of each item, that is, the characters to the LEFT. But suppose you want to sort according to characters on the right?
For this you need to use the =RIGHT function.
You have a series of account codes, where the first five digits represent the nominal code, the last three digits the cost centre.