How can I change separated numbers from turning into date format?

Davebro

Board Regular
Joined
Feb 22, 2018
Messages
122
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
0-2 1-2 3-40-201-Feb03-Apr
1-2 0-0 1-11-20-001-Jan
1-0 2-0 1-11-02-001-Jan
2-3 1-0 0-12-31-00-1
2-1 1-02-11-0
2-1 3-0 0-22-13-00-2
2-0 1-1 2-22-001-Jan02-Feb
3-0 1-13-001-Jan
1-0 2-0 1-31-02-001-Mar
2-1 3-0 1-12-13-001-Jan
1-0 1-11-001-Jan
1-0 2-1 1-21-002-Jan01-Feb
2-1 0-1 1-02-10-11-0
1-1 2-0 2-11-12-002-Jan
3-0 3-1 4-03-003-Jan4-0
1-1 2-2 0-01-102-Feb0-0
1-0 2-0 2-11-02-002-Jan
0-1 0-2 1-20-10-201-Feb
1-0 2-0 2-11-02-002-Jan
0-1 1-2 1-10-101-Feb01-Jan
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
How are you separating them?
 
Upvote 0
In that case with text to columns on page 3 of the wizard select all three columns in the Data preview pane & then select Text as data format, then click finish.
Before doing that make sure that the destination cells are formatted as general or text.
 
Upvote 0
In that case with text to columns on page 3 of the wizard select all three columns in the Data preview pane & then select Text as data format, then click finish.
Before doing that make sure that the destination cells are formatted as general or text.
Yes that is what I am doing but some still come out date .
 
Upvote 0
That works for me as long as the destination range is formatted to General before hand.
 
Upvote 0
Another option using a formula
+Fluff v2.xlsm
ABCDE
10-2 1-2 3-40-21-23-4
21-2 0-0 1-11-20-01-1
31-0 2-0 1-11-02-01-1
42-3 1-0 0-12-31-00-1
52-1 1-02-11-0 
62-1 3-0 0-22-13-00-2
72-0 1-1 2-22-01-12-2
83-0 1-13-01-1 
91-0 2-0 1-31-02-01-3
102-1 3-0 1-12-13-01-1
111-0 1-11-01-1 
121-0 2-1 1-21-02-11-2
132-1 0-1 1-02-10-11-0
141-1 2-0 2-11-12-02-1
153-0 3-1 4-03-03-14-0
161-1 2-2 0-01-12-20-0
171-0 2-0 2-11-02-02-1
180-1 0-2 1-20-10-21-2
191-0 2-0 2-11-02-02-1
200-1 1-2 1-10-11-21-1
Main
Cell Formulas
RangeFormula
C1:E20C1=TRIM(MID(SUBSTITUTE($A1," ",REPT(" ",10)),COLUMN(A1)*10-9,10))
 
Upvote 0
Another option using a formula
+Fluff v2.xlsm
ABCDE
10-2 1-2 3-40-21-23-4
21-2 0-0 1-11-20-01-1
31-0 2-0 1-11-02-01-1
42-3 1-0 0-12-31-00-1
52-1 1-02-11-0 
62-1 3-0 0-22-13-00-2
72-0 1-1 2-22-01-12-2
83-0 1-13-01-1 
91-0 2-0 1-31-02-01-3
102-1 3-0 1-12-13-01-1
111-0 1-11-01-1 
121-0 2-1 1-21-02-11-2
132-1 0-1 1-02-10-11-0
141-1 2-0 2-11-12-02-1
153-0 3-1 4-03-03-14-0
161-1 2-2 0-01-12-20-0
171-0 2-0 2-11-02-02-1
180-1 0-2 1-20-10-21-2
191-0 2-0 2-11-02-02-1
200-1 1-2 1-10-11-21-1
Main
Cell Formulas
RangeFormula
C1:E20C1=TRIM(MID(SUBSTITUTE($A1," ",REPT(" ",10)),COLUMN(A1)*10-9,10))
This has solved it, many thanks for your time.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,370
Messages
6,124,526
Members
449,169
Latest member
mm424

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