Saving Currency In CSV

Dazzawm

Well-known Member
Joined
Jan 24, 2011
Messages
3,786
Office Version
  1. 365
Platform
  1. Windows
I have a friend who has a spreadsheet in excel that is in the format of 2.00, 3.00, 4.50 etc. but when he saves it as CSV (he needs to) it chops of the zeros i.e it is 2, 3, 4.5 etc Is there any way it can be saved in CSV the same way it is in excel with the .00? Thanks.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Does your friend open the file again in Excel, or a text editor like Notepad?

If opened in Excel, indeed the 00 are lost.

What is the aim of saving as CSV if it's opened in Excel?
 
Upvote 0
I dont know why he needs to save as a CSV and he will be opening again in Excel. So nothing can be done to stop losing the .00s?
 
Upvote 0
After opening the file in excel , high lit the range and reformat to display 2 decimal places. Or record the macro to select the range and perform the reformatting. something like this:

Note Macro is crude and generated by recording:



Sub Macro2()
'
' Macro2 Macro
' Macro recorded 10/4/2011
'

'
ActiveCell.Offset(1, 0).Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.NumberFormat = "$#,##0.00"
End Sub
 
Upvote 0
Indeed the friend will need to reapply the formatting. Either manually, either with a macro. The macro could be stored in his/her personal macro workbook if wanted.
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,484
Members
452,917
Latest member
MrsMSalt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top