Problems with Find & Replace

G

Gazzr

Hi All,

My spreadsheet contains bank account numbers that contain "-" and
spaces. To get rid of these characters I use Edit > Find > Replace.

When I do this the last digit of the 16 digit number changes to a zero
rather than show the correct number. The first 15 digits of the account
number are fine. Its just the last digit that seems to be affected.

Any ideas?

Regards
Garry
 
B

Bryan Hessey

Removal of the '-' means that Excel now considers this to be a numeric
for which it holds only the first 15 digits.
Setting the cell to TEXT format before your edit should help.

--
 
P

Peo Sjoblom

Use a help column and this instead

=SUBSTITUTE(A2,"-","")


where A2 holds the account, then copy as long as needed, then paste special
as values

when you use edit replace you trigger a calculation and make the text string
into a number and excel has only 15 digits precision everything after that
will be truncated to a zero so if you need to enter account numbers that are
for instance 16 digits precede the entry with an apostrophe or preformat as
text.

--

Regards,

Peo Sjoblom

Northwest Excel Solutions

www.nwexcelsolutions.com

(remove ^^ from email address)

Portland, Oregon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top