Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Replace "." to ","

Hi, can you help me?
I need replace dot (.) to comma (,) in worksheet cells.
The number format is "123 456,00" in my international settings.
Another application export numbers as "123.1234" format, but Excel knows the
number as "123,1234" format. The cells a
34.2444 0.5687 97.7290 0.8474
34.2677 0.5689 97.7180 0.8067 ...

The Selection.Replace What:=".", Replacement:="," ... command replace these
cells as:
342 444 0,5687 977 290 0,8474
342 677 0,5689 977 180 0,8067
but I need as:
34,2444 0,5687 97,7290 0,8474
34,2677 0,5689 97,7180 0,8067

Thank you your time

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Replace "." to ","


try again but first change your international settings to allow 4
decimals using the "customize" button on the regional and language
options in control panel.


--
bill k


------------------------------------------------------------------------
bill k's Profile: http://www.excelforum.com/member.php...nfo&userid=821
View this thread: http://www.excelforum.com/showthread...hreadid=471856

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Replace "." to ","

I thank your advice, but it can't help me.

I tried to format the cells, like as "@" format and other custom format, but
it doesn't work.

If I replace "." to "," in these cells (34.2444 0.5687 97.1233 ...) in
Excel with the Find&Replace dialog, it works properly. I record this commands
and I play back it in VBA, the command doesn't work.
If the cell's value is less then ~ 0.9999 or the decimals is 2 the replaced
value is good but its formatted as text. If the cell's value greater than
1.0000, the ","/"." vanish from the replaced value (1.0000 -- 10 000)
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" a wildcard as a place marker and "replace" with original va Eric Excel Discussion (Misc queries) 1 January 27th 09 06:00 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


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