Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Find/Replace changes cell format ??????

I have a column in spreadsheet containing codes - they are 4-digit
numbers
some of them contain leading zeros. So column is formatted as Text to
preserve
those leading zeros. I want to mark some of those codes by adding
extra prefix -
eg. '0041' changes to 'xx0042'. But when I try to remove to remove
that extra string
later by Find/Replace Excel reformats the cell to remove leading
zeros: xx0042
changes to 42. How can I prevent that?

TIA for any pointers,

JT
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Find/Replace changes cell format ??????

Highlight the cells, CTRL-H, then:

Find What: xx
Replace with: ' (i.e. apostrophe)
Replace All.

Hope this helps.

Pete

On Jan 23, 6:11*am, Woland99 wrote:
I have a column in spreadsheet containing codes - they are 4-digit
numbers
some of them contain leading zeros. So column is formatted as Text to
preserve
those leading zeros. I want to mark some of those codes by adding
extra prefix -
eg. '0041' changes to 'xx0042'. But when I try to remove to remove
that extra string
later by Find/Replace Excel reformats the cell to remove leading
zeros: xx0042
changes to 42. How can I prevent that?

TIA for any pointers,

JT


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Find/Replace changes cell format ??????

I assume you are manually applying the prefix so you have 2 choices:-

1. When applying the pefix don't delete the ' sign. It will be visible in
the cell though. When you do a replace xx with nothing and the leading zeroes
will be retained.

2. If having the ' visible is an issue then delete it, apply your prefix and
when you replace try replacing xx with '

Mike

"Woland99" wrote:

I have a column in spreadsheet containing codes - they are 4-digit
numbers
some of them contain leading zeros. So column is formatted as Text to
preserve
those leading zeros. I want to mark some of those codes by adding
extra prefix -
eg. '0041' changes to 'xx0042'. But when I try to remove to remove
that extra string
later by Find/Replace Excel reformats the cell to remove leading
zeros: xx0042
changes to 42. How can I prevent that?

TIA for any pointers,

JT

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
Find and replace # with new line in a cell. rmellison Excel Discussion (Misc queries) 6 December 17th 07 03:58 PM
find and replace for date format -D- Excel Discussion (Misc queries) 0 January 23rd 07 07:32 PM
Find comment replace cell value [email protected] Excel Discussion (Misc queries) 3 July 5th 06 09:42 PM
Find & Replace text format jmn13 Excel Discussion (Misc queries) 2 May 25th 06 06:18 PM
find replace format neeraj Excel Discussion (Misc queries) 6 September 20th 05 05:50 PM


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

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"