#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Copying Numeric Text

When copying a numeric text string (i.e., 1234, 5678) from Notepad into a
General formatted cell of Excel the text is reformatted as a number (i.e.,
12,345,678). Is there a formula or macro to stop this and leave the text as
a numeric string?

Thanks In Advance
--
Rodman Veney
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Copying Numeric Text

You must do TWO thing:

1. pre-format the destination cell as Text
2. when pasting use PasteSpecial Text
--
Gary''s Student - gsnu200817


"Rodman" wrote:

When copying a numeric text string (i.e., 1234, 5678) from Notepad into a
General formatted cell of Excel the text is reformatted as a number (i.e.,
12,345,678). Is there a formula or macro to stop this and leave the text as
a numeric string?

Thanks In Advance
--
Rodman Veney

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Copying Numeric Text

hi
not really. best to preformat as text then paste special values perticularly
if your number strings have leading zeros.
macro....after paste......change it back to text.....
sub dofomats()
range("A1:A10").Numberformat = "@"
end sub
change range to suit.
you could run the macro prior to paste to preset a large range but the paste
would have to be pastespecial values.

Regards
FSt1

"Rodman" wrote:

When copying a numeric text string (i.e., 1234, 5678) from Notepad into a
General formatted cell of Excel the text is reformatted as a number (i.e.,
12,345,678). Is there a formula or macro to stop this and leave the text as
a numeric string?

Thanks In Advance
--
Rodman Veney

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Copying Numeric Text

Hi,

Just copy the number into Excel and select a column of them
1. choose Data, Text to Columns, and click Next twice
2. In the preview pane select the column with the numbers and click Text in
the top part of the window.

If this helps, please click the Yes button

Cheers,
Shane Devenshire

"Rodman" wrote:

When copying a numeric text string (i.e., 1234, 5678) from Notepad into a
General formatted cell of Excel the text is reformatted as a number (i.e.,
12,345,678). Is there a formula or macro to stop this and leave the text as
a numeric string?

Thanks In Advance
--
Rodman Veney

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Copying Numeric Text

Thanks - That Worked!
--
Rodman Veney


"Shane Devenshire" wrote:

Hi,

Just copy the number into Excel and select a column of them
1. choose Data, Text to Columns, and click Next twice
2. In the preview pane select the column with the numbers and click Text in
the top part of the window.

If this helps, please click the Yes button

Cheers,
Shane Devenshire

"Rodman" wrote:

When copying a numeric text string (i.e., 1234, 5678) from Notepad into a
General formatted cell of Excel the text is reformatted as a number (i.e.,
12,345,678). Is there a formula or macro to stop this and leave the text as
a numeric string?

Thanks In Advance
--
Rodman Veney



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
text to numeric [email protected] Excel Worksheet Functions 5 December 19th 07 05:04 PM
text to numeric CLEM Excel Discussion (Misc queries) 3 October 17th 07 12:48 PM
Numeric in Text to convert back to the form of Numeric for VLookup Purposes achilles Excel Discussion (Misc queries) 4 February 6th 06 07:05 AM
Text to Numeric lehigh46 Excel Worksheet Functions 3 July 28th 05 06:16 PM
Text to Numeric format Joe Excel Discussion (Misc queries) 1 December 9th 04 04:52 PM


All times are GMT +1. The time now is 09:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"