开发者

Change a name field from LAST FIRST ordered to FIRST LAST ordered

开发者 https://www.devze.com 2022-12-25 23:25 出处:网络
I have an excel spreadsheet with about 700 entries.The names are listed as \"DOE JOHN\" (no comma separating the names).I need to format them so they read JOHN DOE.

I have an excel spreadsheet with about 700 entries. The names are listed as "DOE JOHN" (no comma separating the names). I need to format them so they read JOHN DOE.

1.) I would like to learn how to do this in excel.

2.) I would like to learn how to do this in linux开发者_如何学运维.

Thanks!


If your LAST FIRST data in A1:A10, for example, paste this worksheet formula into B1. Then copy and paste into B2:B10.

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

If you then want to get rid of the LAST FIRST data, select B1:B10 and choose Edit - Copy. Select A1:A10, select Edit - Paste Special - Values.

Be sure to review B1:B10 before you paste values over your original data to make sure it worked like you expect.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号