.csv file dropping formatting

jms27864

New Member
Joined
Apr 22, 2019
Messages
1
Hello.

Is there a way to save a .csv file with the required formatting? I need to enter "0000" in a range of cells. When the .csv file was open on my computer, I formatted the range for text so I could enter the required "0000" in the cells. I save the file and sent it to someone else, but when they attempted to upload the file, the formatting was removed and the range was changed to "0" only. This caused the upload to fail. Does anyone know what happened that might have caused the formatting to change? Also, does anyone know how to save the .csv file with the required formatting? Thank you in advance.
 

Some videos you may like

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
53,642
Office Version
365
Platform
Windows
Welcome to the Board!

A csv file will save with whatever formatting you have applied.
HOWEVER, if you open the csv file in Excel, it will do a conversion of certain field values, and anything that looks like a number will be converted to a number (i.e. "0000" will change to 0).
For this reason, you should NEVER use Excel to open/view a csv file, if you want to see what its contents really look like. Use a Text Editor, like NotePad or WordPad to confirm that the csv has the data the way you want it.
 

Watch MrExcel Video

Forum statistics

Threads
1,102,005
Messages
5,484,148
Members
407,433
Latest member
JohnSmith12345

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top