"text to columns" with numbers

alfordtp

Board Regular
Joined
Oct 3, 2008
Messages
62
I have cells that contain multiple values as a full string:

Apple - Banana - 000123

When I convert to three columns using the "text to columns" operation, the third column converts to a number and removes the leading zeros (cell value turns into 123 as a number). This is breaking my lookup function. Any ideas how to keep everything as text and exactly as it is shown?

TIA

Tim
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi,

Try this:

Text to Columns, Delimited, Next
Check "Other", Hyphen, Next
Select/Highlight 3rd column in preview pane (where the number is), Select "Text" upper left, Finish.

Edit, already answered, type too slow;)
 
Upvote 0
Solution
Thank you for the full explanation. I didnt realize that you had to click each column and select text. I was clicking the text option, but apparently it was only for the first column.
 
Upvote 0
You're welcome, glad to help, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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