LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-07-2010, 11:30 AM   #1
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Rep: Reputation: 39
exporting csv contacts from gmail account to openoffice spreadsheet


Here is a tutorial
http://www.labnol.org/software/mail-...h-gmail/13289/
which I am trying to work on my machine.
That links talks about creating a mail merge in gmail.
The reason I am trying above is I sit usually in environments where
proxy exist/do not exist and this is a frequent situation for me.
I do not have a network admin configuring any sort of port mapping for
me to be able have a mail merge sort of thing.
What I want to know is,is there a way I can copy paste all the
contacts which I download from my gmail account.
What I see my contact list when I download from my gmail account is
624 rows and each row has a single column and delimiter being comma
,,, which is not once but many times.
I have tried exporting my contacts as csv files when it asks for type
:google csv or to use in outlook.

The situation which is troubling is uneven formatting of csv file that
I download.
In some places the number of comma ,,, appearance of star * ,presence
of phone number * are not certain.
So I can not go and copy paste manually 624 contacts to one excel
sheet as given on the above tutorial.
Is there an easy way to work in this situation.
 
Old 10-07-2010, 09:46 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi tkmsr, Have you tried just opening the csv file with Excel or Open Office Calc? A csv file is nothing more than a text file with commas separating what should be recognized as cells by a spreadsheet program.

Good luck. ;-)
 
Old 10-08-2010, 02:08 AM   #3
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by Peacedog View Post
Hi tkmsr, Have you tried just opening the csv file with Excel or Open Office Calc? A csv file is nothing more than a text file with commas separating what should be recognized as cells by a spreadsheet program.

Good luck. ;-)
Here is a tutorial
http://www.labnol.org/software/mail-...h-gmail/13289/
which I am trying to work on my machine.

That links talks about creating a mail merge in gmail.
When I open the csv files or import them in openoffice spreadsheet
what I see in my contact list when I download from my gmail account is
624 rows and each row has a single column and delimiter being comma
,,, which is not once but many times.


The situation which is troubling is uneven formatting of csv file that
I downloaded.Which does not open properly in any open office or spreadsheet
programme.
 
Old 10-10-2010, 07:45 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Have you tried just following the tutorial with out trying to open the file?

When you open a csv file, you have to choose a delimiter option to separate the values into cells.

Good luck. ;-)
 
Old 10-11-2010, 02:59 AM   #5
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Yes I have tried that delimiter option.
It is not coming in a proper format.The problem is the contacts are not well defined.At some places last name is replaced by first name,more than one phone number exist for some cells.Some cells do not carry any email,
some cell have information more than needed.
So even if I select a delimeter as , which I did before doing the first post of mine here the file after opening is not in a format so that I can select a column and paste it to some other excel sheet.
The columns have information from preceding columns and the cells overlap each other.
 
Old 10-11-2010, 07:21 AM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I think that three commas in a row means two blank fields.
 
Old 10-11-2010, 07:26 AM   #7
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
Actually that is the problem 3 comma or 2 comma or 7 or 8 how many will occur that can not be predicted and cells of columns overlap in some cases so it is not a very cleanly formatted csv file that you can easily import.
So assuming what you say is correct then what can be done to resolve this?
 
Old 10-11-2010, 07:35 AM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I don't understand, how can cells "overlap"?
 
Old 10-11-2010, 10:59 AM   #9
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
The content of one cell is coming inside another cell that is what I mean by overlap.
This has happened in some cells not all.
 
Old 10-11-2010, 11:16 AM   #10
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by tkmsr View Post
The content of one cell is coming inside another cell
????????????????????

Maybe you can post a screenshot or something, that makes no sense at all. If you don't want to post the original data, at least make an example CSV file that does this.

Items in a CSV file cannot overlap, that's impossible. Each comma separates cells beginning from left to right, and each newline wraps to the next row of cells.

------------ EDIT ---------------


Do you mean that the text from one cell is so long that is continues on top of the next cell? If so, just resize the columns.

Last edited by MTK358; 10-11-2010 at 11:18 AM.
 
Old 10-11-2010, 11:23 AM   #11
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
I do wish to give a snapshot or upload the no of columns is very large.Let me know I will upload some thing.
 
Old 10-11-2010, 11:29 AM   #12
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I don't understand.
 
Old 10-11-2010, 12:40 PM   #13
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
The best option may be to go into your gmail account and clean up the contact entries. Other than that you may need to open the csv with a text editor and clean it up that way.

Good luck. ;-)
 
Old 10-11-2010, 09:30 PM   #14
tkmsr
Member
 
Registered: Oct 2006
Distribution: Ubuntu,Open Suse,Debian,Mac OS X
Posts: 798

Original Poster
Rep: Reputation: 39
That is exactly what I do not want to do.I have 3000 entries and updating them would be painful.
 
Old 10-12-2010, 07:33 AM   #15
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by tkmsr View Post
I do wish to give a snapshot or upload the no of columns is very large.Let me know I will upload some thing.
I gramatically don't understand that sentence. Maybe you could re-tell it and I would understand.

Do you mean that you would like to upload it, but it's very large? If so, compress it with gzip and post it here. Here's how:

Code:
gzip file.csv
mv file.csv.gz file.csv.gz.txt
The last renaming to .txt is so that the forum would allow it.

Last edited by MTK358; 10-12-2010 at 07:35 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash/contacts: convert vcf <=> csv ? frenchn00b Programming 1 04-26-2009 01:51 PM
OpenOffice spreadsheet time function lothario Linux - Software 2 03-11-2009 03:54 PM
de-hyperlinking an e-mail address in OpenOffice spreadsheet newbiesforever Linux - Software 2 05-22-2008 11:59 AM
split pasted data in openoffice spreadsheet? hedpe Linux - Software 2 01-10-2006 07:55 AM
openoffice spreadsheet and image keevitaja Linux - Software 1 11-21-2002 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration