Separation of compound names, within the name

shimaa01234

Active Member
Joined
Jun 24, 2014
Messages
446
Can you separate the compound names in Arabic
Such as:
Abdel Rahman, Abdel Massih
Using the formula
Separation of compound names, within the name,
Name the compound so that, in a single column
And the rest, all in the name of a separate column
Like this table

Mohammed Abdel Rahman BayoumiMohammedAbdel RahmanBayoumi
Abdel Rahim Mustafa Tayeb Abdel RahimMustafaTayeb
Elias Abdel Massih CharlesEliasAbdel MassihCharles

<tbody>
</tbody>
 
Last edited:
Error occurs when you add a name to the name of the fourth division after the columns
Appears like this:
Abd Elaziz Ibrahim Abd Rahman MohammedAbdElaziz Ibrahim RahmanMohammed

<colgroup><col width="274"><col width="85"><col width="147"><col width="90"></colgroup><tbody>
</tbody>
I'm sorry, I know that the "compound names" difficult to be separated
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Error occurs when you add a name to the name of the fourth division after the columns
Appears like this:
Abd Elaziz Ibrahim Abd Rahman MohammedAbdElaziz Ibrahim RahmanMohammed

<tbody>
</tbody>
I'm sorry, I know that the "compound names" difficult to be separated

In the first column (let’s call it A) there are six words, but the sum of words in B-D is only five. Please always show the desired result.
In your last table ’Abd’ is alone in column B, but before ’Abd’ was followed by another word in column B, e.g. ’Abd Rahman’ in your post #14. What does this depend on?
 
Upvote 0
I do not mean to be separate "slave" to a single column
But this happened after add the name of the fourth "Mohammed" to "Abd Elaziz Ibrahim Abd Rahman"
So I want another formula in the fourth column to separate the name if "4 names"
 
Upvote 0
I do not mean to be separate "slave" to a single column
But this happened after add the name of the fourth "Mohammed" to "Abd Elaziz Ibrahim Abd Rahman"
So I want another formula in the fourth column to separate the name if "4 names"

New approach:

B1:
=IF(MIN(FIND({"Abd","Alaa"},A1&"AbdAlaa"))=1,TRIM(LEFT(SUBSTITUTE(A1," ",REPT(" ",99)),198)),TRIM(LEFT(SUBSTITUTE(A1," ",REPT(" ",99)),99)))

C1:
=LEFT(TRIM(SUBSTITUTE(A1,B1,"")),FIND(" ",TRIM(SUBSTITUTE(A1,B1,"")))-1)

D1:
=IF(LEN(TRIM(SUBSTITUTE(A1,B1&" "&C1,"")))-LEN(SUBSTITUTE(TRIM(SUBSTITUTE(A1,B1&" "&C1,""))," ",""))>1,TRIM(LEFT(SUBSTITUTE(TRIM(SUBSTITUTE(A1,B1&" "&C1,""))," ",REPT(" ",99)),198)),TRIM(SUBSTITUTE(A1,B1&" "&C1,"")))

E1:
=TRIM(SUBSTITUTE(A1,B1&" "&C1&" "&D1,""))
Excel Workbook
ABCDE
1Abd Rahman Samir AliAbd RahmanSamirAli
2Abd Allah Ibrahim MarzoukiAbd AllahIbrahimMarzouki
3Samira Syed Abd ElMominSamiraSyedAbd ElMomin
4Alaa ElDin Mohamed AliAlaa ElDinMohamedAli
5Peter Michel Abd ElMassihPeterMichelAbd ElMassih
6Abd Elaziz Ibrahim Abd ElrahmanAbd ElazizIbrahimAbd Elrahman
7Abd Elaziz Ibrahim Abd Elrahman MohammedAbd ElazizIbrahimAbd ElrahmanMohammed
Sheet
 
Upvote 0
All beautiful words in the world, sent it to you
Because you are a wonderful person, and gentle
Thank you very much for this wonderful effort with me
Thank you to these formulas, smart and skilled
Now all the formulas work like magic
 
Upvote 0
I'm sorry again
When I write "2 composite name"
Such as "Abd ElRahman Abd ElAziz Mohammed Ibrahim"
The name appears in the table like this
Abd ElRahman Abd ElAziz Mohammed IbrahimAbd ElRahmanAbdElAziz MohammedIbrahim

<colgroup><col width="296"><col width="97"><col width="77"><col width="124"><col width="146"></colgroup><tbody>
</tbody>
I'm really very sorry for that
 
Upvote 0
I'm sorry again
When I write "2 composite name"
Such as "Abd ElRahman Abd ElAziz Mohammed Ibrahim"
The name appears in the table like this
Abd ElRahman Abd ElAziz Mohammed IbrahimAbd ElRahmanAbdElAziz MohammedIbrahim

<tbody>
</tbody>
I'm really very sorry for that

To make further work possible, please separate ’Abd ElRahman Abd ElAziz Mohammed Ibrahim’ showing the expected result and do the same with all the name-structures that the formulas given so far do not process correctly. I do not know these structures, so I can base my work only on the patterns you provide.
 
Upvote 0
First - I'm sorry for your trouble
Secondly - the expected result is:
Abd Elrahman Abd Elaziz Mohammed Ibrahim Abd ElrahmanAbd Elaziz MohammedIbrahim

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,454
Members
449,083
Latest member
Ava19

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