Get uppercase lastname from string

fred78350

New Member
Joined
Oct 2, 2011
Messages
5
Hi list,

I have a column containing full names (Firstname LASTNAME) and I want to split this information into two adjacent columns, first one containing only LASTNAME and other one containing LASTNAME Firstname (swapped), using only XL macros (no VBA).

I could of course isolate Firstname from LASTNAME by looking for the space character, but sometimes full names are composed of multiple firstnames and/or lastnames, like in the following example:

Column A
Rich ABBOT
Victor James DELA CRUZ
Fred DRUM GERA
Jo Wilfried ROBERTS

So in column B, I should only have:
ABBOT
DELA CRUZ
DRUM GERA
ROBERTS

And in column C:
ABBOT Rich
DELA CRUZ Victor James
DRUM GERA Fred
ROBERTS Jo Wilfried

I am thinking about checking the first occurrence of two capital letters in a string to detect the beginning of lastname, but I am not such a specialist in Excel macros to know how to do it.

Thanks a lot for your help!

Fred
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Welcome to the board!

I'm guessing what you want is a formula not a macro.

Try

Excel Workbook
ABC
1Rich ABBOTABBOTABBOT Rich
2Victor James DELA CRUZDELA CRUZDELA CRUZ Victor James
3Fred DRUM GERADRUM GERADRUM GERA Fred
4Jo Wilfried ROBERTSROBERTSROBERTS Jo Wilfried
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,682
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top