Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 04-07-2025, 01:52 PM   #1
sfboek
Junior Member
sfboek began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Apr 2025
Device: BOOX NEO
Library export CSV

Hello

I did do a search by could not find an answer.

When I export the calibre library database to a CSV file, my columns are separated by the comma character.

When I open this file in an Excel sheet all my data are in one column.
The I use Select Data > Text to Columns.

Unfortunately, most of my books are written by more than 1 writer.
These writers are also separated by the comma character.
When I have 3 writers, these writers are moved to 3 columns, because they are also separated by a comma. So the title of this book will be in column 4
When I have 2 writers, the title of the book will be in column 3.
So in column 3 I have sometimes the third writer and sometimes the title of the book.
And ofcourse the titel of the books contains sometimes a comma.

Is it possible to change the comma for the column into someting else

Thanks Simon
sfboek is offline   Reply With Quote
Old 04-07-2025, 04:53 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,023
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
You need to use Comma Quoted import.
Authors (most strings) are Quoted so those are a single cell
OTOH numbers do not have commas, so the use the comma as a column separator

EG
Code:
"62","2013-08-18T07:04:21-07:00","The Exotic Enchanter","","L. Sprague deCamp & Christopher Stasheff","Harold Shea","6.0"
Is an empty field
theducks is offline   Reply With Quote
Old 04-07-2025, 06:05 PM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,708
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Use the --list option in the calibredb command to create the 'csv', it has a 'separator' parameter.

BR
BetterRed is offline   Reply With Quote
Old 04-07-2025, 07:39 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,956
Karma: 168961900
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by sfboek View Post
Unfortunately, most of my books are written by more than 1 writer.
These writers are also separated by the comma character.
When I have 3 writers, these writers are moved to 3 columns, because they are also separated by a comma. So the title of this book will be in column 4
When I have 2 writers, the title of the book will be in column 3.
So in column 3 I have sometimes the third writer and sometimes the title of the book.
And ofcourse the titel of the books contains sometimes a comma.

Is it possible to change the comma for the column into someting else

Thanks Simon
Your results seem rather odd. When I generate a CSV catalog, the author(s) end up in one field with & separating the authors. The author_sort field does have internal commas but since the field is quoted, the author names again end up in the same field. This is using LibreOffice Calc since I don't have Microsoft Excel installed on this computer.

I've attached the contents of the CSV file wrapped in code tags:
Code:
title,author_sort,authors,series,series_index
"First Stop","Todd, Michael & Anderle, Michael","Michael Todd & Michael Anderle","Dungeon Rails","1.0"
"Codename: Whistleblower","Cameron, T. R. & Carr, Martha & Anderle, Michael","T. R. Cameron & Martha Carr & Michael Anderle","Spellbound Security","6.0"
"Original-Microsoft-Source-Code","Gates, Bill","Bill Gates","","1.0"
"1638: The Sovereign States","Flint, Eric & Huff, Gorg & Goodlett, Paula","Eric Flint & Gorg Huff & Paula Goodlett","Ring of Fire","36.0"
"1636- the Flight of the Nightingale","Carrico, David","David Carrico","Ring of Fire","34.0"
"1637: The Transylvanian Decision","Flint, Eric & Waters, Robert E.","Eric Flint & Robert E. Waters","Ring of Fire","38.0"
I've attached a screenshot of a few books showing single and multiple authors.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2025-04-07 164102.png
Views:	60
Size:	20.6 KB
ID:	214941  

Last edited by DNSB; 04-07-2025 at 07:47 PM.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Export HTML field to CSV tycho Library Management 0 10-03-2020 10:25 AM
Help Csv export settings cmplus Library Management 15 01-20-2018 11:08 AM
Export CSV of specific view? sweth Library Management 2 07-21-2017 06:09 PM
export list of books in a csv file jcarlier Conversion 8 09-07-2013 09:59 PM
Export to CSV/XLS? highwaykind Calibre 19 05-31-2009 02:35 PM


All times are GMT -4. The time now is 10:20 PM.


MobileRead.com is a privately owned, operated and funded community.