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:
Names already written
I want to be separated in separate columns
Thank you very much because I actually have thought about it
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
I'm not sure if I can help but to decide I had asked for a set of say 10 examples of names AND the expected results from those names. You haven't provided such a list, you just keep giving more examples of the compound names.

I would need to see the full names and the results after they have been split, and it needs to be clear which name(s) are in each result cell.
 
Upvote 0
I hope that these names help you
Thank you Mister "Peter", to help
Abd Rahman Samir Ali Abd RahmanSamirAli
Abd Allah Ibrahim Marzouki Abd AllahIbrahimMarzouki
Samira Syed Abd ElMomin Samira SyedAbd ElMomin
Alaa ElDin Mohamed Ali Alaa EldinMohamedAli
Peter Michel Abd ElMassih Peter MichelAbd ElMassih

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Try this as a first 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:

=TRIM(SUBSTITUTE(SUBSTITUTE(A1,B1,""),D1,""))

D1:

=IF(OR(TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",99)),198,99))="Abd",TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",99)),198,99))="Alaa"),TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),198)),TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99)))
Excel Workbook
ABCD
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
Sheet
 
Upvote 0
You are wonderful
Formulas excellent
Thank you very much for this effort
But I have a request if possible!
You could make three formulas in one formula
Can be pulled in all the columns
Thank you again, Mr. "Istvan Hirsch"
But when the formula "2 compound name"
The result is not correct
Like "
Abd Elaziz Ibrahim Abd Elrahman
 
Last edited:
Upvote 0
Also appeared error
When there is a "2 compound name" consecutive
Like this:
Mohammed Abd elRahman BayoumiMohammedAbd elRahmanBayoumi
Abdel Rahim Mustafa Abdel Rahim Abdel Mustafa AbdelRahim
Abd Elaziz Ibrahim Abd ElrahmanAbd ElazizIbrahim AbdElrahman

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
D1 (corrected):

=IF(OR(TRIM(LEFT(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),198),99))="Abd",TRIM(LEFT(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),198),99))="Alaa"),TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),198)),TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99)))
Excel Workbook
ABCD
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
Sheet
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,536
Members
449,037
Latest member
tmmotairi

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