Reverse Order After First Spacing

muhammad susanto

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

dataexpected result
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>
</tbody>

any help, much appreciated...

m.susanto
 
Last edited:

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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
hi jtakw....working well!!!
thank so much...
it :)possible if use macro/vba?
 
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,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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