Reverse Order After First Spacing

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,089
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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

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