If you've used data validation in Excel before, you probably selected the relevant cells, clicked "Data Validation" in the Data tab on the ribbon, and created the rule in the Data Validation dialog ...
In the screenshot below, when the first and last initials of the names in columns A and B are typed into cells C2, C3, and C4 ...