Skip to main content
Question

Hello. I Have an Excel file where one of the featuretype is NAME. It contains the full name of person. I need to split in three columns: Last Name, Middle Name and First Name

  • December 5, 2019
  • 1 reply
  • 18 views

acolliere
Contributor
Forum|alt.badge.img+1

Hello, I'm working with a Excel file from an institution in México. It is a list of people, there is 22 registers.

It is like this:

#NOMBRE1SANCHEZ HERNANDEZ Pedro Antonio

 

In México, people's name is composed of three parts: Fiirst Name + Father's Last Name (FLN)+Mother's Last Name (MLN). Usually the register in an Excel Spreadsheet is: a column "Nombre" (NAME) then we can read in a row, for instance: "Pedro Antonio SANCHEZ HERNANDEZ". It is not useful for filtering using for instance Last Name.

So, I want to split this column and creating two news attributes: Apellido and Nombre. where Apellido will contain the Last Name and Nombre will contain First Name.

In the spreadsheet, the string begins with the Last Name = The FLN + MLN, then it comes the First Name, usually is a combination of two first names, eg: Pedro Antonio (Peter Anthony). There is a blank space between all the names.

 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

sigtill
Supporter
Forum|alt.badge.img+25
  • Supporter
  • December 5, 2019

Hi @acolliere - best approach is to:

1. Add an AttributeSplitter, look for the Newline (\\n) and double click

 

2. Then add an attributecreator