views:

41

answers:

1

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!

+1  A: 

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.

Dick Kusleika
Is this a macro?
tyebud
Sorry tyebud, I edited the answer to show how to use it. It's a worksheet formula that you paste into a cell.
Dick Kusleika
Dick,That you very much for your response.I greatly appreciate it!
tyebud
Dick,I've entered the formula, and it is outputting the name in the same order. Any ideas?
tyebud
Oops, I put the wrong formula in there. I've fixed it. Try it now.
Dick Kusleika