Building a function from the Excel, where there is a drop-down list, having the values (first names are stored there).
These names are stored in the Excel Worksheet, within the cells $C$6:$C$10. Corresponding date of birth is stored in the range $D$6:$D$10 on the same Excel Worksheet.
When I select one of the names from the dropdown filled by values from the range $C$6:$C$10 in the table in $C$17:$C$21, the first date of birth will be stored in the cell $F$17, and the value of last date will be in the cell $F$23, no mater, where the name of the selected value is stored at.
XLOOKUP formula is similar to VLOOKUP formula, however, compared to VLOOKUP, XLOOKUP can return the results also to the left from the array for searching, which is not supported by VLOOKUP formula.