ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Ok i have a spreadsheet with names (https://www.excelbanter.com/excel-discussion-misc-queries/3106-ok-i-have-spreadsheet-names.html)

Help me with this spreadsheet assignment

Ok i have a spreadsheet with names
 
I have a spreadsheet that I have their name this way first name last name,
when i click on assort by alphabet it does not put them in the right order.
So I want to switch it to last name, first name is there a way I can do this.

Example:

Susan Legler want it as Legler, Susan

Thank you Susan Legler

SteveF


Help me with this spreadsheet assignment wrote:
I have a spreadsheet that I have their name this way first name last

name,
when i click on assort by alphabet it does not put them in the right

order.
So I want to switch it to last name, first name is there a way I can

do this.

Example:

Susan Legler want it as Legler, Susan

Thank you Susan Legler


Assume your data is in Cell A1, put this formula in B1:
=RIGHT(A1,LEN(A1)-FIND(" ",A1))&","&LEFT(A1,FIND(" ",A1)-1)

Then sort by Column B

This only works if you data is in a consistent format as you have shown
it



All times are GMT +1. The time now is 12:49 PM.

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