How to rearrange this csv email+name list - pls help

phelix

Пользователь
Регистрация
28.04.2021
Сообщения
62
Благодарностей
12
Баллы
8
Hi, sorry this has nothing to do with Zennoposter - just really looking for answer to this question.
Couldn't find "offtopic" section on this forum.





I have a .csv list of emails + names.
Each name can have 1-3 emails along with it (which are currently separated by a comma).
I need to convert this into a .csv list where its 1 name and 1 email.

Here is example:

John Smith,[email protected],[email protected],[email protected]
Taylor Smith,[email protected]
Jack Smith,[email protected],[email protected]
...(and there are like 10k more rows)

How can I automatically convert this to:

John Smith,[email protected]
John Smith,[email protected]
John Smith,[email protected]
Taylor Smith,[email protected]
Jack Smith,[email protected]
Jack Smith,[email protected]

The main problem here attaching the name to separate rows of the emails that were intially with that name.

I appreciate any help - seems like an easy task, but was stuck on this for few days already, Thanks.
 

myndeswx

Client
Регистрация
15.05.2017
Сообщения
404
Благодарностей
90
Баллы
28
This will work only for 3 emails maximum, if you would have more emails (columns) just repeat the steps in the template.
However, if there were more columns it would make more sense to split the list like that -
name;email,email2,email3,email4

Then in the template you would take from the table
column A = {name}
column B = list of emails
then replace , with a new line, and add that list of emails to a temporary list, then just take one by one from the list and add them to the table, hope it makes sense)
 

Вложения

  • Спасибо
Реакции: phelix

phelix

Пользователь
Регистрация
28.04.2021
Сообщения
62
Благодарностей
12
Баллы
8
Hi myndeswx,

Thanks - the code you sent works PERFECT!!
 
  • Спасибо
Реакции: myndeswx

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)