Reversing the Word Order within a String in Microsoft Excel

In this article we will write the formula to reverse the word order within a string in Microsoft Excel. We will use LEFT, RIGHT, LEN and FIND functions.

LEFT will help to pick the character  from the left side within a cell.

RIGHT will help to pick the character from the right side within a cell text.

LEN function we use to return the text length to a cell.

FIND function returns the location number at which a specific character or text string is first found, reading left to right (not case-sensitive).

Let’s take an example to understand how reversing the word order within a string.

Example 1: We have a list of Names in Column “A” and we need to show the name in its reverse order.

img5

Follow the below given steps:-

  • Select the cell B2, write the formula.
  • =RIGHT(A2,LEN(A2)-FIND(" ",A2))&" "&LEFT(A2,FIND(" ",A2)-1)
  • Press Enter on your keyboard.
  • The function will reverse the word order within a string.

img6;

  • To copy the formula to all the cells, press the key  “CTRL + C”  and select the cell B3 to B6 and press the key “CTRL + V”  on your keyboard.

img7

This is how we can reverse the order of the words by using the Right, Len, Find and Left functions in Microsoft Excel.

 

image 48

 

If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at info@exceltip.com

 

Users are saying about us...

  1. This formula is use only first word . but i want whole string reversed orderly for exp input ( Apple, Ball, Cat) and output should be in (cat, Ball,Apple). If it will be possible please Publish the syntax . It will be more helpful .

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Youtube