How do I stop Excel from converting text to number format?

RHONDAK72

Board Regular
Joined
Dec 26, 2007
Messages
133
I have some cells that begin with "zz000123". I need to remove the "zz" but I also need for the "000" to stay in tact. The cells in the column are formatted as Text. But when I do the Edit-Replace function to replace "zz" with "", it takes off those 3 zeros as if it is converting it to a number format. I do not want that. What can I do to keep "000" in place?

:confused:
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi RHONDAK72,

Assuming your data is always uniform in length , you could
insert a column next to your data & use the formula beow:

=RIGHT(A1,7)

This is assuming 9 characters , it will remove the zz prefix
where neccessary , but if you have no zz prefix it will still
report the 7 digits , alpha & numeric.

Example1 : ZZOOO1234 = OOO1234
Example2 : OOO1234 = OOO1234

HTH

Russ
 
Upvote 0
Try to edit replace "zz" with "'" (single hyphen)
 
Upvote 0
Edit-Replace zz with ' (single hyphen) works. I tried.
 
Upvote 0

Forum statistics

Threads
1,221,537
Messages
6,160,401
Members
451,645
Latest member
hglymph

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