Answers.Body: <p>(EDIT - read Lars' suggestion first)</p>
  <p>Seems clumsy but this might work.</p>
  <p>Run the import with SKIP and at the final step of the import there is an option to either add the contacts to a New Group (A) for the same.</p>
  <p>This should give you a group of those who did not exist in db before import</p>
  <p>Then re-run the import without SKIP and create new group (B) so that should give you all the list.</p>
  <p>then use Custom Search called Include/Exclude and</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-02T20:42:30.517Z
Answers.Text: Could also simplify a little bit by using IGNORE and then search by date added in an advanced search, so you'd only have to do one import.
Answers.UserDisplayName: Lars SG
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-02T20:43:34.613Z
Answers.Text: If this is something ongoing, maybe a Google Sheet with an Apps Script that calls the API?
Answers.UserDisplayName: Lars SG
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-02T23:05:25.520Z
Answers.Text: good idea about running that single import.
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-30T18:50:04.113Z
Answers.LastActivityDate: 2020-12-02T23:06:03.920Z
Answers.LastEditDate: 2020-12-02T23:06:03.920Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>I have a CSV file with email addresses. Part of these addresses are in CiviCRM.</p>
  <p>How can I create a CiviCRM group that includes contacts with emails matching those in CSV file?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-01T12:18:55.233Z
Comments.Text: In your group, do you want only existing CiviCRM contacts who are also in your CSV - or all the addresses in your CSV?
Comments.UserDisplayName: Aidan
Tags: <import><data-import>
Title: How to create a group from CSV file?
ThreadText: # How to create a group from CSV file?
  
  (Asked by: username_0 on 2020-11-30)
  
  I have a CSV file with email addresses. Part of these addresses are in CiviCRM.
  
  How can I create a CiviCRM group that includes contacts with emails matching those in CSV file?
  
  **Tags:** import, data-import
  
  > **Comments:**
  > **username_1**: In your group, do you want only existing CiviCRM contacts who are also in your CSV - or all the addresses in your CSV?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2020-11-30. Score: 1
  
  (EDIT - read Lars' suggestion first)
  
  Seems clumsy but this might work.
  
  Run the import with SKIP and at the final step of the import there is an option to either add the contacts to a New Group (A) for the same.
  
  This should give you a group of those who did not exist in db before import
  
  Then re-run the import without SKIP and create new group (B) so that should give you all the list.
  
  then use Custom Search called Include/Exclude and
  
  > **Comments:**
  > **username_3**: Could also simplify a little bit by using IGNORE and then search by date added in an advanced search, so you'd only have to do one import.  
  > **username_3**: If this is something ongoing, maybe a Google Sheet with an Apps Script that calls the API?  
  > **username_2**: good idea about running that single import.  
  
  ---
  
  