+ Reply to Thread
Results 1 to 5 of 5

(un)Formatting nightmare (eporting to .csv)

Hybrid View

Excelsson (un)Formatting nightmare... 04-12-2015, 09:08 AM
TMS Re: (un)Formatting nightmare... 04-12-2015, 10:08 AM
Aardigspook Re: (un)Formatting nightmare... 04-12-2015, 10:09 AM
Excelsson Re: (un)Formatting nightmare... 04-12-2015, 01:17 PM
TMS Re: (un)Formatting nightmare... 04-12-2015, 01:22 PM
  1. #1
    Registered User
    Join Date
    04-12-2015
    Location
    Sweden
    MS-Off Ver
    Office 2013
    Posts
    2

    (un)Formatting nightmare (eporting to .csv)

    I am having a nightmare scenario trying to export excels data to a csv file for further processing. Hopefully someone here can help me, this is getting to be very frustrating.

    The program I am exporting the data to needs to have numeric data in a format that uses dots for decimal points instead of commas as excel does. I also want to save the data as it is on the fields, without any additional formatting (such as numeric format adding ",00" or removing decimal points, or some other formats adding spaces to large numbers). Keep in mind that excel outputs the .csv file not according to the actual data, but the data modified through the format.

    The solution in theory is extremely simple. Clear format on everything and then find and replace "," with ".". But, it's not that simple, even the unformatted cells for some reason convert to date fields, when swapping "," to ".". So now I have dates inside what is supposed to be numeric data. How can I stop this behavior and have truly unformatted pure data cells with no extra behavior going on?
    Last edited by Excelsson; 04-12-2015 at 10:05 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,465

    Re: (un)Formatting nightmare (eporting to .csv)

    You have commas for decimal points because of your Regional settings. I guess that is the same for dates.

    I would suggest that you set up an empty sheet and, in a helper column, say column A, concatenate the data from all the original columns. Use TEXT, etc., to format the dates and so on. Then save the new sheet with the single text as your csv file.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: (un)Formatting nightmare (eporting to .csv)

    Hi Excelsson,

    The easiest way to do this is to change your settings to use dots as decimal points instead of commas. This is normally set in Windows, through 'Regional Settings' in the Control Panel (sorry, I don't know the names in Swedish). If you don't want to change your whole system, or you don't have the permissions to do so, then you can also change the setting for 'decimal separator' and 'thousands separator' in Excel itself. I'm not sure exactly where you can find this in Excel 2013, but it will be somewhere in 'Options', possibly under 'International' or 'Regional Settings'. Change your settings, export the file using those settings, then change the settings back.

    Good luck.

  4. #4
    Registered User
    Join Date
    04-12-2015
    Location
    Sweden
    MS-Off Ver
    Office 2013
    Posts
    2

    Re: (un)Formatting nightmare (eporting to .csv)

    Thanks guys! Will try this asap!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,465

    Re: (un)Formatting nightmare (eporting to .csv)

    You're welcome. Thanks for the rep.

+ 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. Formula & Formatting Nightmare!!
    By Wellieblob in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-04-2014, 07:33 PM
  2. Date conditional formatting nightmare
    By Clayt_dog in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-20-2014, 09:48 AM
  3. Copy and Pasting Nightmare - Help with Formatting
    By Caleb9124 in forum Excel General
    Replies: 3
    Last Post: 01-24-2014, 06:25 PM
  4. Formatting cell nightmare
    By Wellin in forum Excel General
    Replies: 1
    Last Post: 05-02-2012, 10:51 PM
  5. URGENT(!): '07 Custom Date Formatting Nightmare
    By rockoba in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-23-2010, 01:12 PM

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