Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Problems with number formats when using Find/Replace

I have a list of numbers formatted as text, for instance 1648-50, 1648-56,
0932-73, etc.

When I run the Replace function, trying to replace all the dashes with
periods (while keeping the same format--because I need the leading zeroes),
this happens:

0932-73 becomes 932.73, 1648-50 becomes 1648.5, and so on.

When I check the formatting of the cells, they're all still listed as
"Text", and this happens even if I specify that the number format of the
replacement should be text. What's the deal? Is there any way to keep this
from happening?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Problems with number formats when using Find/Replace

Are these in a single column?

If yes, then I'd insert an adjacent column and use a formula:

=substitute(a1,"-",".")

This will keep the value a string.

You can edit|copy, edit|paste special|values and delete the original column if
you want.

bill wrote:

I have a list of numbers formatted as text, for instance 1648-50, 1648-56,
0932-73, etc.

When I run the Replace function, trying to replace all the dashes with
periods (while keeping the same format--because I need the leading zeroes),
this happens:

0932-73 becomes 932.73, 1648-50 becomes 1648.5, and so on.

When I check the formatting of the cells, they're all still listed as
"Text", and this happens even if I specify that the number format of the
replacement should be text. What's the deal? Is there any way to keep this
from happening?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 390
Default Problems with number formats when using Find/Replace

that worked perfectly.

thanks a lot!

"Dave Peterson" wrote:

Are these in a single column?

If yes, then I'd insert an adjacent column and use a formula:

=substitute(a1,"-",".")

This will keep the value a string.

You can edit|copy, edit|paste special|values and delete the original column if
you want.

bill wrote:

I have a list of numbers formatted as text, for instance 1648-50, 1648-56,
0932-73, etc.

When I run the Replace function, trying to replace all the dashes with
periods (while keeping the same format--because I need the leading zeroes),
this happens:

0932-73 becomes 932.73, 1648-50 becomes 1648.5, and so on.

When I check the formatting of the cells, they're all still listed as
"Text", and this happens even if I specify that the number format of the
replacement should be text. What's the deal? Is there any way to keep this
from happening?


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Problems with number formats when using Find/Replace

You can also use custom formatting to get you leading zeroes

"bill" wrote:

I have a list of numbers formatted as text, for instance 1648-50, 1648-56,
0932-73, etc.

When I run the Replace function, trying to replace all the dashes with
periods (while keeping the same format--because I need the leading zeroes),
this happens:

0932-73 becomes 932.73, 1648-50 becomes 1648.5, and so on.

When I check the formatting of the cells, they're all still listed as
"Text", and this happens even if I specify that the number format of the
replacement should be text. What's the deal? Is there any way to keep this
from happening?

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
Outline different number formats glasbergenm Excel Discussion (Misc queries) 3 June 9th 06 03:46 PM
Custom number formats Louise Excel Worksheet Functions 4 May 5th 06 08:57 AM
How do I do conditional formatting on number formats not patterns. dave55 Excel Discussion (Misc queries) 2 March 22nd 05 02:21 AM
Conditional Number Formats AMcCormick Excel Discussion (Misc queries) 1 January 30th 05 11:47 PM
number formats that allow you to format the appearance of negativ. jassmon Charts and Charting in Excel 1 January 15th 05 09:04 AM


All times are GMT +1. The time now is 09:06 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"