Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default large numbers as text replaced with scientific notation

I did a search-and-replace to remove spaces from a column of 16-digit
credit card numbers stored in cells formatted as text, but afterwards,
the numbers appeared as scientific notation. If I then select each
cell in turn and click in the formula bar, the scientific notation
goes away, but the last digit of each string is replaced with zero.
How can I use search-and-replace to remove spaces without altering the
strings of digits or truning them into scientific notation?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default large numbers as text replaced with scientific notation

You could use a text formula.

With column of numbers starting in A1, insert a "helper" column, and enter
this:

=SUBSTITUTE(A1," ","")

Copy down as needed.

Then, to remove the formulas, and leave just the data behind,
select the helper column, and Right click in the selection and choose
"Copy",

Right click again and choose :"Paste Special",
Click on "Values",
Then <OK, then <Esc,
and you now have a column of data.

You could delete the original column if desired.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

wrote in message
...
I did a search-and-replace to remove spaces from a column of 16-digit
credit card numbers stored in cells formatted as text, but afterwards,
the numbers appeared as scientific notation. If I then select each
cell in turn and click in the formula bar, the scientific notation
goes away, but the last digit of each string is replaced with zero.
How can I use search-and-replace to remove spaces without altering the
strings of digits or truning them into scientific notation?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Location: Bakersfield, CA
Posts: 45
Send a message via Skype™ to JBeaucaire[_85_]
Default large numbers as text replaced with scientific notation

Use Substitute in an adjacent cell first to trim out the spaces.

=SUBSTITUTE(F2," ","")

Now copy that down, highlight then entire range of cells, COPY, and EDIT
PASTE SPECIAL Values over the original credit card numbers. Then delete the
helper cells.

--
"Actually, I AM a rocket scientist." -- JB


" wrote:

I did a search-and-replace to remove spaces from a column of 16-digit
credit card numbers stored in cells formatted as text, but afterwards,
the numbers appeared as scientific notation. If I then select each
cell in turn and click in the formula bar, the scientific notation
goes away, but the last digit of each string is replaced with zero.
How can I use search-and-replace to remove spaces without altering the
strings of digits or truning them into scientific notation?

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
show value as text not scientific notation Colin Excel Discussion (Misc queries) 3 May 1st 23 07:43 PM
Hex numbers displayed in scientific notation when importing text f Gabriel Nehmer Excel Discussion (Misc queries) 2 July 20th 07 04:08 PM
Scientific notation in text cells miles Excel Discussion (Misc queries) 3 December 7th 06 10:59 PM
Using scientific notation in TEXT() function boopathi Excel Worksheet Functions 1 October 10th 05 08:23 PM
Long numbers show up as Scientific Notation berryware421243 Excel Discussion (Misc queries) 5 February 8th 05 03:21 AM


All times are GMT +1. The time now is 04:43 PM.

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

About Us

"It's about Microsoft Excel"