Reverse Order After First Spacing

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,102
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all..

how to reverse order this text below after first space and the final answer adding mark (,) comma
like this :

PT. Big BossBig Boss, PT
Drs Agung Maju SejatiAgung Maju Sejati, Drs
CV. Indah Karya SolutionIndah Karya Solution, CV
FA Tiger Chong GreatTiger Chong Great, FA

<tbody>
[TD="align: center"] data [/TD]
[TD="align: center"] expected result [/TD]

</tbody>

any help, much appreciated...

m.susanto
 
Last edited:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi,

This is one way:


Book1
ABC
1dataexpected resultjtakw Formula
2PT. Big BossBig Boss, PTBig Boss, PT
3Drs Agung Maju SejatiAgung Maju Sejati, DrsAgung Maju Sejati, Drs
4CV. Indah Karya SolutionIndah Karya Solution, CVIndah Karya Solution, CV
5FA Tiger Chong GreatTiger Chong Great, FATiger Chong Great, FA
Sheet143
Cell Formulas
RangeFormula
C2=TRIM(SUBSTITUTE(MID(A2,FIND(" ",A2),255)&", "&LEFT(A2,FIND(" ",A2)),".",""))


C2 formula copied down.
 
Upvote 0
You're welcome.

If you wanted a VBA solution Only, you should have specified that in your OP and/or the Thread title...
I'm afraid I can only provide you a formula solution.

I'm Sure someone will be able to provide you a VBA solution (I can already think of many).:)
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,199
Members
453,022
Latest member
RobertV1609

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