A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi @Ron Lambros ,
Try this formula:
=LET(name, A2:A11, SORTBY(name, BYROW(name, LAMBDA(a, REGEXEXTRACT(a, "[A-Z][a-z]+$")))))
HTH
IlirU
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi @Ron Lambros ,
Try this formula:
=LET(name, A2:A11, SORTBY(name, BYROW(name, LAMBDA(a, REGEXEXTRACT(a, "[A-Z][a-z]+$")))))
HTH
IlirU
Hi,
In cell B2, enter this formula
=SORTBY(A2:A3,TEXTAFTER(A2:A3," ",-1),1)
Hope this helps.
Hi @Ron Lambros,
According to your concern, may I confirm whether you have first name and last name in different columns or you have full name in one column?
If you have full name in one column, Excel will by-design sort from the beginning of the text which means sorting by first name. In this case, you need to create a helper column that extracts last name then sort by that column.
For example, I have a sample of names like this:
=TEXTAFTER(A1," ",-1) and copy it down to extract the last name columnThis is just an example in my testing worksheet. For the best assistance, please share a screenshot or sample data of your current worksheet so I can clearly understand the data structure to provide the most appropriate guidance and formula for your concern.
Please understand that my initial response may not always resolve the issue immediately. However, with your help and more detailed information, we can work together to find a solution.
Thank you for your understanding and cooperation. I look forward to hearing from you.
If you have extra questions, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.