How to move last character to front of a cell or another column in Excel?
For instance, there is a list of data which contains the name, sex, and birth year, now your task is to move the birth year to the front as below screenshot shown, do you have any quick way to solve it in Excel? Here, I have some formulas that may do you a favor.
Move last n characters to front of a cell or another column
Move first n characters to end of a cell or another column
Move last n characters to front of a cell or another column
To move last n characters to front of a cell
Select a blank cell which you will put the result, type this formula =RIGHT(A2,4)&" " &LEFT(A2, LEN(A2)-4 ), press Enter key, and drag fill handle down to fill the formula to the cells.
Extract last n characters to front in another column
Select a blank cell which you will place the extracted characters, type this formula =RIGHT(A2,4), press Enter key, and drag fill handle over the cells to apply this formula.
Move first n characters to end of a cell or another column
If you want to move the first n characters to the end of a cell or another column, I also have some formulas to finish it.
Move first n characters to end in a cell
Select a blank cell which you will put the result, type this formula =RIGHT(A2,(LEN(A2)-4))&" "&LEFT(A2,4), press Enter key, and drag fill handle down to fill the formula to the cells.
Extract first n characters to another column
Select a blank cell which you will place the extracted characters, type this formula =LEFT(A2,4), press Enter key, and drag fill handle over the cells to apply this formula.
Note: In above formulas, A2 is the cell you use, 4 indicate the last (or the first) 4 characters you want to move to the front (or the end), you can change them as you need.
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!