Repex 04b) BUSCARX, Array Functions and Data Validation
Repex 04b) BUSCARX, Array Functions and Data Validation
Download the file repex4b Register of employees.xlsx. It includes, on its sheet Da-
tos, a register of leaves for professional illness, including some relevant information about
the employees.
TASK
1- Use the BUSCARX function to get: Departamento, Grupo cotización and Salario
base.
2- Create a new sheet and call it Listas. Use the functions ORDENAR and UNICOS
to get lists of Departments and Contribution groups (the order is ascendant)
3- Add a third sheet to the workbook and name it Ficha trabajador. Include the
following content on it:
EXCEL: REVIEW – EXERCISE 4B
5- Combine the ORDENAR and FILTRAR functions to get (on the sheet Ficha traba-
jador, on another page) these lists (from the register on the first sheet)
When no employee match the filter criteria, it will appear the expression “No hay
trabajadores”
The length of the leave (Días de baja) requires an specific explanation because it
doesn’t depend only on the employee’s name but on a double data: leave data and em-
ployee’s name (the register can include each employee more than once but the length
of the leave is not likely to be the same in all the cases).
So, in this case the Valor buscado must combine information of two different cells.
But the register doesn’t includes any column with both data (Fecha baja and
Empleado). So you must create it.
1- Go to Datos sheet and insert a new column between Empleado and Departa-
mento. There is a special way of doing this in an Excel table: click on the cell C1
(Departamento),
2- Select the range C2:C12 and delete the list validation rule applied to these cells
3- Click on C2 and insert this formula:
EXCEL: REVIEW – EXERCISE 4B
=A2&B2
The symbol & joins the content of both cells in another one
You get something like this:
Now:
- use the range C2:C12 (Tabla1[Fecha baja and Empleado]) as second argu-
ment in the BUSCARX to get Días de baja (sheet Ficha trabajador, cell E3)
- after finishing all the tasks of the exercise, hide the new column on the sheet
Datos