ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   QUICK FORMAT WITH APOSTROPHE (https://www.excelbanter.com/excel-discussion-misc-queries/251122-quick-format-apostrophe.html)

William

QUICK FORMAT WITH APOSTROPHE
 
I have a column with several thousand rows in the 5-digit Special zipcode
format. I'd like to keep the 5-digit values the same (some begin with a
leading zero), but need to have the data in the text format that BEGINS WITH
AN APOSTRAPHE. Is there a way to convert the entire column quickly?
--
William

jb_tenor1

QUICK FORMAT WITH APOSTROPHE
 
This may seem convoluted, but it will work the fastest. Say, for instance
that your data is in Column 'A'. Highlight column 'B,' and format the cells
as text. Then open Notepad and copy column 'A' from Excel (make sure that
you copied them while they were in the 5-Digit special zip format) and paste
them into Notepad. They should have retained their preceeding zeroes.

Then copy the values out of Notepad, put your cursor into cell B1 and simply
paste them back into Excel. All of the zip codes will be left-aligned in the
cell with a green carrot in the upper, left corner, indicating that a number
has been stored as text. Then, in cell C1, type the following formula:

="'"&B1

Copy the formula all the way down. Once that's done, copy column 'C' and
Paste Special Values to remove the formulas.

Like I said, a little convoluted, but it gets the job done quickly.


Jeff



"William" wrote:

I have a column with several thousand rows in the 5-digit Special zipcode
format. I'd like to keep the 5-digit values the same (some begin with a
leading zero), but need to have the data in the text format that BEGINS WITH
AN APOSTRAPHE. Is there a way to convert the entire column quickly?
--
William


Gord Dibben

QUICK FORMAT WITH APOSTROPHE
 
I always thought "carrots" were orange?


Gord Dibben MS Excel MVP

On Tue, 15 Dec 2009 13:19:01 -0800, jb_tenor1
wrote:

This may seem convoluted, but it will work the fastest. Say, for instance
that your data is in Column 'A'. Highlight column 'B,' and format the cells
as text. Then open Notepad and copy column 'A' from Excel (make sure that
you copied them while they were in the 5-Digit special zip format) and paste
them into Notepad. They should have retained their preceeding zeroes.

Then copy the values out of Notepad, put your cursor into cell B1 and simply
paste them back into Excel. All of the zip codes will be left-aligned in the
cell with a green carrot in the upper, left corner, indicating that a number
has been stored as text. Then, in cell C1, type the following formula:

="'"&B1

Copy the formula all the way down. Once that's done, copy column 'C' and
Paste Special Values to remove the formulas.

Like I said, a little convoluted, but it gets the job done quickly.


Jeff



"William" wrote:

I have a column with several thousand rows in the 5-digit Special zipcode
format. I'd like to keep the 5-digit values the same (some begin with a
leading zero), but need to have the data in the text format that BEGINS WITH
AN APOSTRAPHE. Is there a way to convert the entire column quickly?
--
William



Bob I

QUICK FORMAT WITH APOSTROPHE
 
The part of a carrot exposed to the sun while it is growing will be
green. ;-)

Gord Dibben wrote:

I always thought "carrots" were orange?


Gord Dibben MS Excel MVP

On Tue, 15 Dec 2009 13:19:01 -0800, jb_tenor1
wrote:


This may seem convoluted, but it will work the fastest. Say, for instance
that your data is in Column 'A'. Highlight column 'B,' and format the cells
as text. Then open Notepad and copy column 'A' from Excel (make sure that
you copied them while they were in the 5-Digit special zip format) and paste
them into Notepad. They should have retained their preceeding zeroes.

Then copy the values out of Notepad, put your cursor into cell B1 and simply
paste them back into Excel. All of the zip codes will be left-aligned in the
cell with a green carrot in the upper, left corner, indicating that a number
has been stored as text. Then, in cell C1, type the following formula:

="'"&B1

Copy the formula all the way down. Once that's done, copy column 'C' and
Paste Special Values to remove the formulas.

Like I said, a little convoluted, but it gets the job done quickly.


Jeff



"William" wrote:


I have a column with several thousand rows in the 5-digit Special zipcode
format. I'd like to keep the 5-digit values the same (some begin with a
leading zero), but need to have the data in the text format that BEGINS WITH
AN APOSTRAPHE. Is there a way to convert the entire column quickly?
--
William





William

QUICK FORMAT WITH APOSTROPHE
 
Thanks, Jeff. Worked perfectly and saved me a lot of grief.
--
William


"William" wrote:

I have a column with several thousand rows in the 5-digit Special zipcode
format. I'd like to keep the 5-digit values the same (some begin with a
leading zero), but need to have the data in the text format that BEGINS WITH
AN APOSTRAPHE. Is there a way to convert the entire column quickly?
--
William


jb_tenor1

QUICK FORMAT WITH APOSTROPHE
 
Excellent! Aside from what I've posted, I have not found another easy way to
do this. I will be interested to see if anyone else has a different approach.

Jeff

"William" wrote:

Thanks, Jeff. Worked perfectly and saved me a lot of grief.
--
William


"William" wrote:

I have a column with several thousand rows in the 5-digit Special zipcode
format. I'd like to keep the 5-digit values the same (some begin with a
leading zero), but need to have the data in the text format that BEGINS WITH
AN APOSTRAPHE. Is there a way to convert the entire column quickly?
--
William



All times are GMT +1. The time now is 07:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com