How do I save an excel spreadsheet as a semi-colon separated values file?
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 3
--
Chapters
00:00 How Do I Save An Excel Spreadsheet As A Semi-Colon Separated Values File?
00:24 Accepted Answer Score 26
00:58 Answer 2 Score 12
01:16 Answer 3 Score 5
01:43 Answer 4 Score 4
02:11 Thank you
--
Full question
https://superuser.com/questions/476327/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#microsoftexcel
#avk47
ACCEPTED ANSWER
Score 26
How about doing Tab Delimited and replacing the tabs with semi-colons?
In excel: File -> Save As -> in Format select "Tab Delimited Text (.txt)" then his save.
Open the file in notepad and open the replace window. Since you can't tab directly into this window, copy a tab from your document and then paste it into the Find box and put your ; into the replace box. Then replace all.
I assume this would work because it is very rare to have tabs within an excel document.
ANSWER 2
Score 12
I don't think you can set output separator directly in Excel, but (assuming Windows) you could change OS list separator to ;
- that's done in Regional Settings->Customize
. Excel will use that setting outputing your csv files.
ANSWER 3
Score 5
If you would like a script, paste the following in a module.
Option Explicit
Sub export2scsv()
Dim lastColumn As Integer
Dim lastRow As Integer
Dim strString As String
Dim i As Integer, j As Integer
lastColumn = ActiveSheet.UsedRange.Column - 1 + ActiveSheet.UsedRange.Columns.Count
lastRow = ActiveSheet.UsedRange.Rows(ActiveSheet.UsedRange.Rows.Count).Row
Open "output.scsv" For Output As #1
For i = 1 To lastRow
Cells(i, 1).Select
strString = ""
For j = 1 To lastColumn
If j <> lastColumn Then
strString = strString & Cells(i, j).Value & ";" ' Use semicolon instead of pipe.
Else
strString = strString & Cells(i, j).Value
End If
Next j
Print #1, strString
Next i
Close #1
End Sub
ANSWER 4
Score 4
1.> Change File format to .CSV (semicolon delimited)
To achieve the desired result we need to temporary change the delimiter setting in the Excel Options.
Move to File -> Options -> Advanced -> Editing Section
Uncheck the “Use system separators” setting and put a comma in the “Decimal Separator” field.
Now save the file in the .CSV format and it will be saved in the semicolon delimited format !!!