Move text and numbers from end to beginning of same cell, add colon and space

captenblack

New Member
Joined
Nov 13, 2009
Messages
5
Hello, I'm sure there is a quick and easy way to do this. All content is in column A. I want to move the word "Module" and a #.# that appears after it from the end to beginning of cell and add a colon and space. The text to be moved will always be the same (Module) as shown in examples, the numbers will be different but always #.# format. There is nothing AFTER the numbers in the cells right now, cells always end with #.#. The text prior to "Module" is always random and varies in each cell. Sample of how it currently appears --> how I would want it to appear:


Assisting Others Module 19.4 -->
Module 19.4: Assisting Others

Communicating with Others Efficiently Module 2.4 -->
Module 2.4: Communicating with Others Efficiently


Building and Organizing Proposals and Opinions Module 15.10 -->
Module 15.10: Building and Organizing Proposals and Opinions


Creating & Completing Important Requests Module 5.13 -->
Module 5.13: Creating & Completing Important Requests


Thanks for any help.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
would u be willing to use a UDF

Code:
Function MoveModule(sToEdit As String) As String
MoveModule = Mid$(sToEdit, InStrRev(sToEdit, "Module")) & ": " & Left$(sToEdit, InStrRev(sToEdit, "Module") - 2)
End Function
 
Upvote 0
Copy B1 down.
Excel Workbook
AB
1Assisting Others Module 19.4Module 19.4: Assisting Others
2Communicating with Others Efficiently Module 2.4Module 2.4: Communicating with Others Efficiently
3Building and Organizing Proposals and Opinions Module 15.10Module 15.10: Building and Organizing Proposals and Opinions
Sheet5
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,245
Members
448,555
Latest member
RobertJones1986

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