D
D
dokznx2020-06-08 22:59:21
excel
dokznx, 2020-06-08 22:59:21

How to normalize the base F.I.O .: phone in notepad ++?

Hello. Tell me please.
There are lines with full name and phone number.

Example:
Ivanov Ivan Ivanovich:+7900
Ivanov Ivan Ivanovich:+7900
Ivanov Ivan:+7900
Ivanov Ivan:+7900
IVANOV iVan:+7900
Ivan:+7900
Ivan:+7900
.,,, ^%##$^:+7900

It is necessary to bring all the lines to the model:
Ivanov Ivan Ivanovich: + 7900
Start full name . with a capital letter and after a colon do not change anything.

If there is not enough last name, first name or patronymic, add No:
Ivan No No: +7900
Ivanov Ivan No: +7900
No No No: +7900

Is it possible to somehow do this in notepad++?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Grigory Boev, 2020-06-08
@ProgrammerForever

I would do this:
1) Insert before each entry \t (tab)
2) replace " :+7 " with " \t+7 "
3) What happens - copy to Excel
4) Copy the first column and import to a new sheet, dividing into columns by space
5) Apply to the first three columns a formula that capitalizes the first letter, or insert "none" where there is nothing, the fourth is unchanged
6) Copy all four columns back to Notepad++
7) Replace \t with nothing
eight) ?????
9) PROFIT!!!

K
Korben5E, 2020-06-09
@Korben5E

I would, right in Excel, swap the columns, and then fill the empty spaces with the word No.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question