How to preserve text formatting

total21

New Member
Joined
Nov 5, 2015
Messages
18
I have a colum of data, which as an example, looks something like this:

[TABLE="width: 527"]
<tbody>[TR]
[TD="class: xl63, width: 527"]0.33|third|1/3

When I do Data -> Text to columns it will work correctly, but this will turn into 0.33 third Jan-3

I dont need anything like Jan-3 and all cells need to be kept as they are. Is there any way to prevent that. I've tried formatting all cells as General or Text, but it does not work. 1/3 still gets changed to Jan-3.

Thanks. [/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
When you get to Step 3 of 3 in the Text To Column dialog box, select the third column (the one with 1/3 in it) and then click the Text option button, then click the Finish button.
 
Upvote 0
When you get to Step 3 of 3 in the Text To Column dialog box, select the third column (the one with 1/3 in it) and then click the Text option button, then click the Finish button.

Yes this works. The inner window of step 3 of 3 is actually clickable, and it can be adjusted there.

Actually, it is only showing 3 columns there (and I can change them all to text), and some of the rows have like 20 columns. Is there any way to adjust that (I can do something like Ctr+A for selecting all, it looks like).

Thanks.
 
Upvote 0
Actually, it is only showing 3 columns there (and I can change them all to text), and some of the rows have like 20 columns. Is there any way to adjust that (I can do something like Ctr+A for selecting all, it looks like).
With the first column highlighted (the default), if you Shift-Click the last column, all the columns will become selected.
 
Upvote 0
With the first column highlighted (the default), if you Shift-Click the last column, all the columns will become selected.

I kind of cant get to the last one, it seems like. I would need to scroll through 15,000+ rows, and it does not look like I would be able to do it, I think.
 
Upvote 0
I kind of cant get to the last one, it seems like. I would need to scroll through 15,000+ rows, and it does not look like I would be able to do it, I think.
Last column not last row (the rows are selected by default).
 
Upvote 0
I think what OP is saying is you have mixed data down the column.
Some rows have only 2 or 3 delimiters
Some have many.
In the TTC window, you only see a preview of a few rows.
If that preview window doesn't contain a row with many delimters, then you only see a few of the resulting columns.
If you scroll down to a point where a row in the preview window contains many delimiters, THEN you can see many columns.

I don't think there's any way around that.
You'll just have to scroll the window until you hit a row with the max delimiters.
 
Upvote 0
Last column not last row (the rows are selected by default).

I know, I am talking about columns. Just like the post #7, it is hard to do what is needed on 15,000 rows. I would need to somehow scroll to that row 8,500 (or whatever else), which would have these 20 columns, and I would need to mark all 20. It does not seem to be a doable thing.
 
Upvote 0
You could add a helper column to count how many delimiters are in each cell.
=LEN(A1)-LEN(SUBSTITUTE(A1,"yourdelimiter",""))

Then sort the data in Descending order by the column with the formula.
Then the max cell with the most delimiters will be on the top of the column.
 
Upvote 0
You could add a helper column to count how many delimiters are in each cell.
=LEN(A1)-LEN(SUBSTITUTE(A1,"yourdelimiter",""))

Then sort the data in Descending order by the column with the formula.
Then the max cell with the most delimiters will be on the top of the column.

This worked. Thanks!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
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