RE-ARRANGE TEXT STRING ORDER DUE TO A WORD "TO"

AFZAL SOHAIL

Board Regular
Joined
May 31, 2023
Messages
116
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
Hello!,Dear Team, I need a formula who re-arrange the Text String in a Cell with reference to the word in this text string is "to"
My Data is as under:-
8078-AIT (2/0/1) to C-12 Neelam Block
Allama Iqbal town 8078 (2/0/1) to C-12 Neelam Block
8061 ARZ (11/0/2) to Dream Garden MSAG
8061 ARZ (2/0/6) to MSAG-56 Jalal Estate Edenabad
8061-ARZ to 8060-BTN
AliRazabad OLT to C04 Hajvery Textile
8061-ARZ (11/0/7) to C-3/4 Bhobhtian Chowk
ARZ OLT-1 to C-14 M-2 Lake City
BTN: OLT-1 to Leads Club Defence Road
JTN OLT-1 to Bahria Orchard (Indoor)
BTN OLT-1 to Near Lead Club
BTN OLT-1 to Near Lead Club
Faisal Town 8067 to Ufone 7123
FZRD: OLT-1 to C-10 Main Chungi Amrsadhu
8057-FZRD (11/0/3) to 7301-Ufone (2/0/2)

And the result should be is as under, thanks a lot for your help:-

C-12 Neelam Block to 8078-AIT (2/0/1)
C-12 Neelam Block to Allama Iqbal town 8078 (2/0/1)
Dream Garden MSAG to 8061 ARZ (11/0/2)
MSAG-56 Jalal Estate Edenabad to 8061 ARZ (2/0/6)
8060-BTN to 8061-ARZ
C04 Hajvery Textile to AliRazabad OLT
C-3/4 Bhobhtian Chowk to 8061-ARZ (11/0/7)
C-14 M-2 Lake City to ARZ OLT-1
Leads Club Defence Road to BTN: OLT-1
Bahria Orchard (Indoor) to JTN OLT-1
Near Lead Club to BTN OLT-1
Near Lead Club to BTN OLT-1
Ufone 7123 to Faisal Town 8067
C-10 Main Chungi Amrsadhu to FZRD: OLT-1
7301-Ufone (2/0/2) to 8057-FZRD (11/0/3)
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hello Team.
Can it is possible to it pull out some text strings which is match A&B,
e,g c12 neelam block
dream garden
leads club
 
Upvote 0
Thanks a lot Sir Peter_SSs,
I want to match col-A with col-b and then find any duplicate with formula not conditional formatting.
I don't understand how that request relates to the data you gave in post #9.

Perhaps you could gives some other sample data and the expected results and explain in relation to those samples how you get the expected results?
 
Upvote 0
Respected Sir,
I share the data sample and their expected results, I have text string in Col-A, in Col-b it will be the sub string parts of the string of col-A, in col-c one part of this sub-string if match in col-A string part then count in next col how much time. similarly the other part of this substring if match or not with the part of string of col-a and how many times is as under:-

Col- AText substringsFirst Match string resultNo.of Counts2nd Match string resultNo.of Counts
Allama Iqbal town 8078 (2/0/1) to C-12 Neelam Blockallama iqbal town, neelam BlockAllama iqbal2 TimesNeelam block1 Times
8061 ARZ (11/0/2) to Dream Garden MSAGDrean Garden, 8061 arzDream Gardem3 Times8061 ARZ4 TIMES
 
Upvote 0

Forum statistics

Threads
1,215,903
Messages
6,127,652
Members
449,395
Latest member
Perdi

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