How can I save a csv file with semicolon separator in Excel 2002?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
semicolon separator in Excel 2002 (xp)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » semicolon separator in Excel 2002 (xp)
- This topic has 14 replies, 9 voices, and was last updated 22 years, 10 months ago.
Viewing 2 reply threadsAuthorReplies-
macropod
AskWoody_MVPJune 25, 2002 at 9:45 pm #597004That would violate the ‘csv’ part – comma separated values and you wouldn’t then get the correct result next time you open the file in Excel. Since these are plain text files, you could open them in Word and do a search/replace. I’d still be inclined to save them with an extension other than csv, though.
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
WSpieterse
AskWoody LoungerJune 26, 2002 at 5:06 am #597062-
WSDoryO
AskWoody LoungerJune 26, 2002 at 5:47 am #597068I had a client recently that demanded a semicolon-delimited “CSV” format for their data AND no quote marks please. Ugh.
After much wasted time trying to remove all semi-colons from the content prior to export and then writing code to open the text file and search replace commas to semi-colons they finally realized that this just wasn’t going to work without wrecking their data.
Hurrah! We’re going to use standard CSV files right? No! They want pipe-delimited now. Still no quote marks. I think the inability of their importing software to handle the text-delimiting quote marks means that they cannot use a field delimiter that could possibly exist in the content itself. Thus, they chose the oddball pipe character: |
So I’m curious about what software wants these semi-colon delimited files. Is this a trend?
-
WSBrooke
AskWoody LoungerJune 26, 2002 at 8:29 am #597081[indent]
So I’m curious about what software wants these semi-colon delimited files. Is this a trend?
[/indent]Don’t know about trend, but it is certainly in use here.
for the record we receive tab delimited data that we need to change to pipe delimited. this is done by a mixture of Jan Karel and DoryO’s methods:
a) change list seperator in regional settings to pipe.
open submitted data.txt (tab delimited) file in excel.
c) enter a pipe in column CL (the system it’s going to will reject it unless there are at least 90 columns – can’t cope with adding them on itself)
d) save as csv
e) open in word, find and replace quotes with nothing and save as a .txtAs to what software/system, the initial stage is an oracle database that was designed in house, but the chap who wrote it has long been gone, and no-one knows the answer to the question, “why pipe delimited?” To cap it all, when the data leaves that database for the next one (also oracle) it goes as tab delimited.
Whilst we can understand the pipe if you’re going to use character delimited – it’s just the least likely to show up anywhere in the data – what we don’t understand is why character and not tab. Our best guess is that it’s a hangup from an older system that the programmer used in his youth where that was the way things were.
-
WSAlanMiller
AskWoody LoungerJuly 13, 2002 at 1:31 pm #600933I can hazard a fairly good guess as to the choice of this format. If the exported file ends up in a database, the single quote character is a “special” character in SQL queries, and its inclusion in tables can create merry hell. I know this one from experience, with names like O’Hara -> runtime error 🙁
The choice of the pipe character rather than a tab means that the end-of-cell is clearly visible in a text editor, and errors are much less likely when making changes in same. Tabs are invisible, and will vary in screen whitespace width. These problems are exacerbated by viewing with wordwrap and in variable width fonts.
Alan
-
WSDoryO
AskWoody LoungerJuly 13, 2002 at 6:22 pm #600961>>If the exported file ends up in a database…
I should hope the exported file would be IMPORTED into a database. In which case, the import process merely USES the quotation marks and field separator (comma or pipe or tab) to tell it how to chop up the records into fields. These characters are never meant to be stored as data in the resulting database.
-
WSAlanMiller
AskWoody LoungerJuly 14, 2002 at 4:05 am #601027I think you miss my point WRT the single quote characters. They are not used as delimiters, but end up as part of the data – for instance in a last_name table column as O’Hara, O’Brien, O’Grady. If they then appear in this form in generated SQL queries, the syntax of the query is broken, since a quote is actually a string delimiter in the SQL language. I don’t think their requirement for “no quotes” had anything to do with their DB import capabilities. They’re not using quotes as cell delimiters – they just don’t want them messing up their SQL.
As far as the *cell* delimiter goes, the only reason for selecting a screen-visible character that I can imagine is if they wanted to do something direct within the text file, prior to import to the DB. Otherwise, why bother – just stick to a tab? Their choice of semicolon seems to have been an oversight, its unsuitability discovered in retrospect. But since a comma is fairly common in textual fields, it’s easy to guess why they didn’t want CSV.
Alan
-
WSAlanMiller
AskWoody LoungerJuly 15, 2002 at 12:32 am #601096This is just an example to qualify the kind of problems that might arise.
Spreadsheet: 3 cells
[Cell] O’Brien [Cell] John T. [Cell] B.Sc, MBS, PhD [Cell] ….– Problem with CSV export/import to database: 3 cells -> 5 fields
[Field] O’Brien [Field] John T. [Field] B.Sc[Field] MBS[Field] PhD [Field]– Problem with SQL query: select * where L_NAME =
OK if is Jones:
select * where L_NAME = ‘Jones’NOT OK if is O’Brien:
select * where L_NAME = ‘O’Brien’ -> Error in SQL query – Brien not known command, mismatched ‘ marks.Alan
-
WSHansV
AskWoody LoungerJuly 15, 2002 at 7:44 am #601132Alan,
Export from Excel to .csv depends – on my PC – on the list separator set in Windows:
- Cells are separated by the Windows list separator (comma for e.g. US setting, semicolon for e.g. Dutch setting)
- Text cells containing the list separator are exported surrounding by double quotes. So if the comma acts as list separator, B.Sc, MBS, PhD is exported as “B.Sc, MBS, PhD”. This will be imported to a single field in a database.
[/list]The problem with quotes has to be solved in the database, for example:strSelection = “O’Brien”
strSQL = “SELECT * FROM tblImport WHERE L_Name = ” & Chr(34) & strSelection & Chr(34)
-
WSAlanMiller
AskWoody LoungerJuly 15, 2002 at 12:51 pm #601167Hans,
All quite true, but the “customer” might already have established their own standards for import into their own DB software and are therefore simply expressing same in their requirements for “no quotes” and a pipe separator. Moreover, they may be using their own flavour of SQL that works on the same restrictions (an older version of Oracle maybe). My point was simply that the specifications for the exported spreadsheet text file are entirely the business of the customer, not the supplier of same.
Alan
-
-
-
WSmbila
AskWoody LoungerJune 26, 2002 at 1:42 pm #597163H. Legare Coleman
AskWoody PlusViewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Can’t make Opera my default browser
by
bmeacham
2 hours, 58 minutes ago -
Do not Fall For This Purdentix Scam (Awaiting moderation)
by
elizabethkaur56
5 hours, 31 minutes ago -
*Some settings are managed by your organization
by
rlowe44
15 hours, 30 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
17 hours, 44 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
18 hours, 9 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 3 hours ago -
AI slop
by
Susan Bradley
1 day, 2 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 4 hours ago -
Two blank icons
by
CR2
14 hours ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 13 hours ago -
End of 10
by
Alex5723
1 day, 16 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
13 hours, 55 minutes ago -
test post
by
gtd12345
1 day, 22 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 12 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 4 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 2 hours ago -
Upgrading from Win 10
by
WSjcgc50
14 hours, 5 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
17 hours, 38 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 18 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 5 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 20 hours ago -
Are manuals extinct?
by
Susan Bradley
5 hours, 36 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 5 hours ago -
Network Issue
by
Casey H
2 days, 16 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 17 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 17 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 19 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 20 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 21 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 21 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.