ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Invert Cell contents (https://www.excelbanter.com/excel-discussion-misc-queries/240386-invert-cell-contents.html)

Mike F

Invert Cell contents
 
I have a cell with the name Doe Jane.
Is there a way I can invert the information in the cell to read 'Jane Doe'?

Luke M

Invert Cell contents
 
Something like this:

=MID(A2,FIND(" ",A2)+1,255)&" "&LEFT(A2,FIND(" ",A2)-1)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Mike F" wrote:

I have a cell with the name Doe Jane.
Is there a way I can invert the information in the cell to read 'Jane Doe'?


Jacob Skaria

Invert Cell contents
 
Try
=MID(A1,FIND(" ",A1),99)& " " & LEFT(A1,FIND(" ",A1))

If this post helps click Yes
---------------
Jacob Skaria


"Mike F" wrote:

I have a cell with the name Doe Jane.
Is there a way I can invert the information in the cell to read 'Jane Doe'?


L. Howard Kittle

Invert Cell contents
 
Hi Mike,

=MID(A1,FIND(" ",A1)+1,10)&" "&LEFT(A1,FIND(" ",A1))

Will work for simple names per your example. Goes nuts with names like Du
Pont James or St James Susan.

(Change the 10 to a larger number if first name exceeds 10 characters)

HTH
Regards,
Howard

"Mike F" wrote in message
...
I have a cell with the name Doe Jane.
Is there a way I can invert the information in the cell to read 'Jane
Doe'?





All times are GMT +1. The time now is 03:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com