CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • add a column to csv file to import
Pages: [1]

Author Topic: add a column to csv file to import  (Read 6255 times)

businessbroker

  • Guest
add a column to csv file to import
August 28, 2008, 07:41:08 pm
I see that to use the country_code I need to know the nation of my contact, in my files to import actually is missing exactly country, so I need to add column of country.
I'm not a developer, and with excel, ultraedit, notepad, notepad ++ look to be impossible
i need to see csv file in columns like in excel, but esxcel show this like a normal text file, not in columns, how I can easily add a column on many csv files?

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: add a column to csv file to import
August 29, 2008, 02:23:47 am
You can add the country column separated by a comma at the end of each row in your import file,

You can also refer to http://wiki.civicrm.org/confluence/display/CRMDOC/Importing+Data for more info on Import.

HTH
-Yashodha

Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

geilhufe

  • I post frequently
  • ***
  • Posts: 293
  • Karma: 33
    • Social Source Software
Re: add a column to csv file to import
August 29, 2008, 11:47:06 am
I always do my import files in Excel.

I use all the excel tools to add columns, delete, concatenate, and do all the special excel manipulations (vlookup is your friend).
My excel workbook will often have multiple worksheets all with data in different formats and from different sources. Formulas carry the data from one worksheet to another until a final worksheet that is my final civicrm import data.

When my data is ready, I open my excel workbook, save just the civicrm import worksheet as a csv, then import the resulting csv file into CiviCRM.

With complex imports, I will often have to iterate multiple times before I have resolved all the various importing errors reported by CiviCRM. I remember one particularly large and complex import I probably ran the CiviCRM import 25 times before I had worked out all the kinks. That was back in the days when the import ran MUCH slower than it does today.

In your specific case, I would open the csv file in excel. Then I would add a column in excel for the country, enter your country information, then save as csv. Should be pretty simple.
Drupal and CiviCRM consulting, strategy and configuration
http://www.social-source.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • add a column to csv file to import

This forum was archived on 2017-11-26.