Data transformation

How to split a customer full name into first and last name

2026-06-20
Task

A file has a full_name column, for example Anna Petrova. The result needs first_name and last_name.

Short answer

Create two columns from one field: the first keeps everything before the first space, the second removes that first part and keeps the rest.

How to do it in Eofferix

  1. Upload Excel or CSV and open the table editor.
    Customer full name split into first and last name in Eofferix
    Both output columns use the same full_name source field.
  2. Create first_name from full_name and keep the first non-space part with a regular expression.
    Rules for extracting the first name from a customer full name
    The first_name column uses a regular expression that keeps the first part before a space.
  3. Create last_name from full_name and remove the first non-space part plus the following space.
  4. Check names with middle names or compound surnames.

Before / after

The data below is a training example and does not belong to real user files.

Before

source data
client_idfull_name
C-1001Anna Petrova
C-1002Ivan Sergeev Smirnov

After

result
client_idfirst_namelast_name
C-1001AnnaPetrova
C-1002IvanSergeev Smirnov

Process data faster with Eofferix

Create a free account to automate catalogs and price lists around your own rules.

Sign up