To lock the first row in Excel, go to the View tab, Window group, and click Freeze Panes > Freeze Top Row.