+ Reply to Thread
Results 1 to 24 of 24

replace a Dot with Comma Because of a Formula

  1. #1
    Registered User
    Join Date
    02-17-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    52

    Question replace a Dot with Comma Because of a Formula

    Hello,

    I got a Sheet(export FreshBooks) with testing information and cost.
    On cell ( I ) i get cost send tru from my co-worker with dot between it example: 125.00/25.00

    because of this my formula doesn't work ony my Sheet(Output) i know that i need to replace this with comma (,) (this is because i work with (,) in the Netherlands and the (.) is for GB usage)

    is there a VBA line for this? i know there is option for find dot and replace with comma (,).

    greets,
    Test.xlsm

  2. #2
    Registered User
    Join Date
    02-17-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: replace a Dot with Comma Because of a Formula

    I'll try to explain that situation better.

    I'm using commas as decimal separator, but data that I work with, comes from another application (web-based) that uses dots as separator. When I paste data tables to a Excel chart, all numbers are handeled as text. My objective is to convert them to the numbers.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: replace a Dot with Comma Because of a Formula

    You can substitute it:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hint: You must first change , (thousand delimiter) with nothing, and then . with ,

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: replace a Dot with Comma Because of a Formula

    Hello

    Perhaps something like this?

    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    02-17-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: replace a Dot with Comma Because of a Formula

    The code Works.

    But ..if i have big numbers like 1.000.000 i will chance that i will get a #value
    Last edited by Shimazu; 03-10-2014 at 11:19 AM.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: replace a Dot with Comma Because of a Formula

    ............................
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-17-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: replace a Dot with Comma Because of a Formula

    the code works fine but when i put new information in it with bigger numbers like 8,264,46 it will say #valeu on sheet OUTPUT.

    Version 2.xlsm

  8. #8
    Registered User
    Join Date
    02-17-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    52

    Question Replacing commas/dot as decimal separator

    Hello,

    I'm using commas as decimal separator, but data that I work with, comes from another application (web-based) that uses dots as separator.
    When I paste data tables to a Excel chart, all numbers are handeled as text. My objective is to convert them to the numbers.

    I already have this (this works) but for bigger numbers like 7,000,000 i will get a #VALUE!
    Is there a fix for this?
    Version 2.xlsm
    Please Login or Register  to view this content.
    Greets

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,595

    Re: Replacing commas/dot as decimal separator

    Try this
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    02-17-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: Replacing commas/dot as decimal separator

    Not working :/ but thanks....
    the problem is more with Bigger outcomes like 8.000,000 ...first dot and then comma really weird.

  11. #11
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Replacing commas/dot as decimal separator

    Hi,
    obviously, in the data that you paste they have comma as thousands separator. So the first step in a "dirty" approach would be to remove it, and then replace the decimal dot with comma. However, based on the input data (e.g. if the input data come from csv ot text file) it would be better if you use import and specify that decimal separator is dot and comma is used for thousands separator.
    If you are pleased with a member's answer then use the Star icon to rate it.

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,595

    Re: Replacing commas/dot as decimal separator

    Quote Originally Posted by Shimazu View Post
    Not working :/ but thanks....
    the problem is more with Bigger outcomes like 8.000,000 ...first dot and then comma really weird.
    Where are they?

    I don't find such string in col I...

  13. #13
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: replace a Dot with Comma Because of a Formula

    As you see i merged your two same threads.

    I'd like to ask for you to don't create duplicates threads.....

  14. #14
    Registered User
    Join Date
    02-17-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: Replacing commas/dot as decimal separator

    ON line 21 I on Sheet(FreshBooks)
    if you look on the outcome on line 21 F on Sheet (output) it will give #valeu

  15. #15
    Registered User
    Join Date
    02-17-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: Replacing commas/dot as decimal separator

    And how can i do this.....(realy beginner here)

  16. #16
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,595

    Re: replace a Dot with Comma Because of a Formula

    I21 is 8,264,46

    If you run my code, the formula returns 8264.46 as it should.

  17. #17
    Registered User
    Join Date
    02-17-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: replace a Dot with Comma Because of a Formula

    OK it works now..but i still get #valeu on Sheet(output)

    is there a way that Dot will chance to comma on J to ...intergrated on your code??

    because of that line J there are still dot... i think that will fix the #Valeu

  18. #18
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,595

    Re: replace a Dot with Comma Because of a Formula

    Are we looking at the same file?

    I have no error after the code.

    All looks fine.

  19. #19
    Registered User
    Join Date
    02-17-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: replace a Dot with Comma Because of a Formula

    Can you attach your file ??

  20. #20
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,595

    Re: replace a Dot with Comma Because of a Formula

    .................
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    02-17-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: replace a Dot with Comma Because of a Formula

    Ok whe are working in the same file.... but On Sheet (output) i still get #valeu

    can i use your code double ?? then for line J in sheetFreshbooks)
    How can i Edit this that will work on line J to?

    Please Login or Register  to view this content.
    Last edited by Shimazu; 03-11-2014 at 04:48 AM.

  22. #22
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,595

    Re: replace a Dot with Comma Because of a Formula

    Select the range that you want to apply then run.
    Don't select entire column or Excel may crush.
    Please Login or Register  to view this content.

  23. #23
    Registered User
    Join Date
    02-17-2014
    Location
    Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    52

    Re: replace a Dot with Comma Because of a Formula

    Its working now thank you

  24. #24
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,595

    Re: replace a Dot with Comma Because of a Formula

    Quote Originally Posted by Shimazu View Post
    Its working now thank you

    You should be very careful in asking/replying.

    It was already "WORKING", you just didn't know how to run it.

    And thanks for no repl.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Code to replace comma with tab
    By momer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-27-2013, 01:27 PM
  2. [SOLVED] If comma present, then place a character before and after comma (FORMULA)
    By jaimealvarez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2012, 04:04 PM
  3. Replace dot with comma with macro
    By Idde in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-15-2011, 09:07 AM
  4. Replace comma on dot
    By makbos in forum Excel General
    Replies: 5
    Last Post: 08-16-2010, 05:09 AM
  5. replace the comma separator to a dot and dot to a comma at the same time
    By barkiny in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-24-2010, 05:42 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1