separating multiple Proper names (uppercase letters) from a list

Keebler

Board Regular
Joined
Dec 1, 2021
Messages
176
Office Version
  1. 2021
Platform
  1. Windows
I have a list of proper names that only has spaces between their first and last names. I need a formula that can separate these names into adjacent cells...
ex:
Jim BobJo JamesMike PettersonDirk Smith Jim Bob Jo James Mike Peterson Dirk Smith

Jim BobJo JamesMike PetersonDirk SmithJim BobJo JamesMike PetersonDirk Smith
does that make any sense?

thank you
Ken

to add injury to insult.. there are a few times that I have seen Proper names with McFlury or people with 2 last names Like JoEllen Smith-Peterson

thank you
 
Last edited by a moderator:
In relation to your #NUM! errors when trying Eric's formula, one reason would be that your formula could be pointed at an empty cell.
Try starting a new, blank worksheet and then ..
  • Click this icon at the top left of Eric's mini-sheet: View attachment 52669

  • Select cell A1 in the blank worksheet and Paste
again, I modified it to fit my worksheet
here is my syntax =IF($H349="","",LEFT(MID($H349,LEN(CONCAT($BR349:BR349))+1,999),AGGREGATE(15,6,ROW(INDIRECT(LEN(CONCAT($BR349:BR349))+2&":"&LEN($H349)))/ISNUMBER(FIND(MID($H349,ROW(INDIRECT(LEN(CONCAT($BR349:BR349))+2&":"&LEN($H349))),1),"abcdefghijklmnopqrstuvwxyz"))/ISNUMBER(FIND(MID($H349&"A",ROW(INDIRECT(LEN(CONCAT($BR349:BR349))+3&":"&LEN($H349)+1)),1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ")),1)-LEN(CONCAT($BR349:BR349))))
did i do that incorrectly?
the data to be sorted is stored in the H column (currently on row 349), there is other data in all the columns until column BQ (which is why it is allowing the open column of BR)
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Are you sure that is your syntax? It should be
=GetName($H349,COLUMNS($BY:BY))

But that missing "S" should not cause the #NAME? error

Another reason you could get #NAME? error is if you have the function code pasted more than once in the vba module. Check that too.
I did go ahead and entered the missing "s".. to no avail,
and confirmed there is only one instance of the VBA module with THIS code
 
Upvote 0
I found the issue with the #num! error, the cell with the data had a pair of "()", with those removed, it did kinda sort... only the first name of the FIRST person in the list
 
Upvote 0
here is my syntax =IF($H349="","",LEFT(MID($H349,LEN(CONCAT($BR349:BR349))+1,999),AGGREGATE(15,6,ROW(INDIRECT(LEN(CONCAT($BR349:BR349))+2&":"&LEN($H349)))/ISNUMBER(FIND(MID($H349,ROW(INDIRECT(LEN(CONCAT($BR349:BR349))+2&":"&LEN($H349))),1),"abcdefghijklmnopqrstuvwxyz"))/ISNUMBER(FIND(MID($H349&"A",ROW(INDIRECT(LEN(CONCAT($BR349:BR349))+3&":"&LEN($H349)+1)),1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ")),1)-LEN(CONCAT($BR349:BR349))))
did i do that incorrectly?
That looks okay to me. Here is my test with columns I:BQ hidden & your formula starting in BS349
Can you post the same with XL2BB?

Keebler.xlsm
HBRBSBTBUBVBW
349Jim BobJo JamesMike PetersonDirk SmithJim BobJo JamesMike PetersonDirk Smith 
Sheet1
Cell Formulas
RangeFormula
BS349:BW349BS349=IF($H349="","",LEFT(MID($H349,LEN(CONCAT($BR349:BR349))+1,999),AGGREGATE(15,6,ROW(INDIRECT(LEN(CONCAT($BR349:BR349))+2&":"&LEN($H349)))/ISNUMBER(FIND(MID($H349,ROW(INDIRECT(LEN(CONCAT($BR349:BR349))+2&":"&LEN($H349))),1),"abcdefghijklmnopqrstuvwxyz"))/ISNUMBER(FIND(MID($H349&"A",ROW(INDIRECT(LEN(CONCAT($BR349:BR349))+3&":"&LEN($H349)+1)),1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ")),1)-LEN(CONCAT($BR349:BR349))))
 
Upvote 0
I did go ahead and entered the missing "s".. to no avail,
and confirmed there is only one instance of the VBA module with THIS code
Can you make up a small sample workbook with the vba code in it and a small amount of data in column H (no sensitive data) and the function entered in the relevant cells? If that still shows #NAME, can you upload that sample file to DropBox or OneDrive or Google Drive etc and provide a shared link here in the forum so that I can take a look?
 
Upvote 0
So, here is the data
Can you make up a small sample workbook with the vba code in it and a small amount of data in column H (no sensitive data) and the function entered in the relevant cells? If that still shows #NAME, can you upload that sample file to DropBox or OneDrive or Google Drive etc and provide a shared link here in the forum so that I can take a look?
sure, one moment.. preparing now
 
Upvote 0
I DID create the black workbook and created the new module, etc.. placed data in the EXACT same cells.. NO major errors except
the formula only produces the FIRST name, no others.. and the function only produces the 2 name.. no others
 
Upvote 0
Book1.xlsm
HIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZCACBCC
1Katie BaileyCindy LeclercBrent LentolKatie BaileyKatie BaileyKatie BaileyKatie BaileyKatie BaileyCindy Leclerc    
Sheet1
Cell Formulas
RangeFormula
BQ1BQ1=IF($H1="","",LEFT(MID($H1,LEN(CONCAT($BR1:BR1))+1,999),AGGREGATE(15,6,ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+2&":"&LEN($H1)))/ISNUMBER(FIND(MID($H1,ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+2&":"&LEN($H1))),1),"abcdefghijklmnopqrstuvwxyz"))/ISNUMBER(FIND(MID($H1&"A",ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+3&":"&LEN($H1)+1)),1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ")),1)-LEN(CONCAT($BR1:BR1))))
BS1BS1=IF($H1="","",LEFT(MID($H1,LEN(CONCAT($BR1:BR1))+1,999),AGGREGATE(15,6,ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+2&":"&LEN($H1)))/ISNUMBER(FIND(MID($H1,ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+2&":"&LEN($H1))),1),"abcdefghijklmnopqrstuvwxyz"))/ISNUMBER(FIND(MID($H1&"A",ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+3&":"&LEN($H1)+1)),1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ")),1)-LEN(CONCAT($BR1:BR1))))
BT1BT1=IF($H1="","",LEFT(MID($H1,LEN(CONCAT($BR1:BR1))+1,999),AGGREGATE(15,6,ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+2&":"&LEN($H1)))/ISNUMBER(FIND(MID($H1,ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+2&":"&LEN($H1))),1),"abcdefghijklmnopqrstuvwxyz"))/ISNUMBER(FIND(MID($H1&"A",ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+3&":"&LEN($H1)+1)),1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ")),1)-LEN(CONCAT($BR1:BR1))))
BU1BU1=IF($H1="","",LEFT(MID($H1,LEN(CONCAT($BR1:BR1))+1,999),AGGREGATE(15,6,ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+2&":"&LEN($H1)))/ISNUMBER(FIND(MID($H1,ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+2&":"&LEN($H1))),1),"abcdefghijklmnopqrstuvwxyz"))/ISNUMBER(FIND(MID($H1&"A",ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+3&":"&LEN($H1)+1)),1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ")),1)-LEN(CONCAT($BR1:BR1))))
BV1BV1=IF($H1="","",LEFT(MID($H1,LEN(CONCAT($BR1:BR1))+1,999),AGGREGATE(15,6,ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+2&":"&LEN($H1)))/ISNUMBER(FIND(MID($H1,ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+2&":"&LEN($H1))),1),"abcdefghijklmnopqrstuvwxyz"))/ISNUMBER(FIND(MID($H1&"A",ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+3&":"&LEN($H1)+1)),1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ")),1)-LEN(CONCAT($BR1:BR1))))
BY1:CC1BY1=GetName($H1,COLUMNS($BY:BZ))
 
Upvote 0
so, after I dragged the formula across the other cells.. it populated CORRECTLY
Book1.xlsm
HIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBV
1Katie BaileyCindy LeclercBrent LentolKatie BaileyKatie BaileyCindy LeclercBrent Lentol 
Sheet1
Cell Formulas
RangeFormula
BQ1BQ1=IF($H1="","",LEFT(MID($H1,LEN(CONCAT($BR1:BR1))+1,999),AGGREGATE(15,6,ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+2&":"&LEN($H1)))/ISNUMBER(FIND(MID($H1,ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+2&":"&LEN($H1))),1),"abcdefghijklmnopqrstuvwxyz"))/ISNUMBER(FIND(MID($H1&"A",ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+3&":"&LEN($H1)+1)),1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ")),1)-LEN(CONCAT($BR1:BR1))))
BS1:BV1BS1=IF($H1="","",LEFT(MID($H1,LEN(CONCAT($BR1:BR1))+1,999),AGGREGATE(15,6,ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+2&":"&LEN($H1)))/ISNUMBER(FIND(MID($H1,ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+2&":"&LEN($H1))),1),"abcdefghijklmnopqrstuvwxyz"))/ISNUMBER(FIND(MID($H1&"A",ROW(INDIRECT(LEN(CONCAT($BR1:BR1))+3&":"&LEN($H1)+1)),1),"ABCDEFGHIJKLMNOPQRSTUVWXYZ")),1)-LEN(CONCAT($BR1:BR1))))

but the function is still giving me the #name? error
 
Upvote 0

Forum statistics

Threads
1,225,477
Messages
6,185,210
Members
453,283
Latest member
Shortm88

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