+ Reply to Thread
Results 1 to 3 of 3

Replacing comma with dot in large data sets

  1. #1
    Registered User
    Join Date
    02-26-2016
    Location
    Denmark
    MS-Off Ver
    MS 15
    Posts
    4

    Replacing comma with dot in large data sets

    Hi All

    I am currently working on saving some SAP BW queries in excel as text files.
    However, I have a problem, some columns out as "0,000" or "0,0000" which makes the save text file also uses the "" which is not allowed in our load code.
    We can not change the source format i.e. "0,000", but if we replace the comma with a dot or blank, then the text file is correct (without any "").

    So my question is how do I effectively remove the comma and replace with either blank or a dot ?
    I have a quite large data set, around 15 columns with each 50.000 cells (around 750.000 cells!)

    I also have to remove spaces in the cells, using the following (peusdo code):
    set rng= range("A1:A4"")
    rng.value=application.trim(rng)

    Could something similar be possible using the application. function ?

    Since the data set is so large, looping though all cells is too slow. I have tried something similar to below code, and it is very too slow:
    Range("A1:A6").Select
    Selection.Replace What:=".", Replacement:=".", LookAt:=xlPart, _
    SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
    ReplaceFormat:=False




    Br,
    Simon
    Last edited by shs91; 10-31-2016 at 02:33 PM.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Replacing comma with dot in large data sets

    Have you tried:

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Replacing comma with dot in large data sets

    I used this with 90k rows, it was pretty darn quick.
    Please Login or Register  to view this content.

+ 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. Poisson with large data sets - HELP!!
    By stufferonald in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-19-2013, 03:24 PM
  2. Combining large sets of data
    By cab0317 in forum Excel General
    Replies: 9
    Last Post: 10-02-2013, 12:50 PM
  3. Working with large sets of data
    By Bishonen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2013, 06:19 AM
  4. Excel 2007 : Comparing Large Data Sets?
    By amgstar in forum Excel General
    Replies: 0
    Last Post: 11-01-2011, 04:53 PM
  5. interrogating large data sets
    By ruleworld in forum Excel General
    Replies: 1
    Last Post: 01-04-2011, 07:13 AM
  6. [SOLVED] how to save large data sets in excel
    By sheck in forum Excel General
    Replies: 1
    Last Post: 08-02-2005, 02:02 AM

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