In Excel 2 sheets. The first is Name, Date of Birth. And the second is the Name, the Name of the school. It is necessary to insert in the second sheet the year of birth from the first sheet by comparing the names of the students. Tell me, how can this be done?
2 answers
One solution is to use the ВПР() function. 1. We have a sheet Имя-ДтРождения with columns Имя , Дата рождения . Each name has a date of birth. Mandatory conditions for the correct operation of the ВПР() function ВПР() names must be sorted alphabetically, the name must be unique.
- We have a sheet
Имя-Школаwith columnsИмя,Школа,Дата рождения. Values forИмя,Школаcolumns are defined.
- To search for the
Имениthe date of birth from theИмя-ДтРожденияuse theВПР()functionВПР(). For cellС2value of the function is:=ВПР(A2;'Имя-ДтРождения'!$A$2:$B$11;2;ЛОЖЬ)
In addition to the previous answer
names must be sorted alphabetically
No, not necessarily. The interval-look function FALSE (0) searches for an exact match of the value.
Sorting is needed if interval viewing is TRUE (1) . This is applicable in cases where, for example, it is necessary to determine the value belonging to a range.
Example of searching by inaccurate matching: https://ru.stackoverflow.com/questions/375079/Formula-excel-or-as- select- groups- values/375087 #375087
If the desired value is to the right of the extracted one, the CDF in the normal record will not cope. In this case, you can use the INDEX / MATCH pair :
=ИНДЕКС(столбец_извлечения;ПОИСКПОЗ(искомое;столбец_поиска;)) 


ВПРfunction - Edward Izmalkov