Remove hyphen and separate / copy numbers

ExPete

New Member
Joined
Oct 16, 2019
Messages
2
Hi all..
So my problem is as follows and not sure if it can be done...

In Column B and starting in B2. I have descending data in format of 1-2-3

I need a macro to remove the hyphen, then copy 1 to C2, 2 to D2 and 3 to E2

This needs to be repeated down entire B column and on different sheets the data extends to different lengths but max 26 rows.
Hope thats understandable and Any help would be greatly appreciated.. (y)
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Hi & welcome to MrExcel.
You can use Text to columns on the Data tab for that.
Select col B > Text to columns > Delimited > Next > Check "Other" & enter - into the box beside it > Finish.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,824
Messages
6,127,087
Members
449,358
Latest member
Snowinx

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