How to lock rows and columns in excel using Freeze panes

To keep an area of a worksheet visible while you scroll to another area of the worksheet, go to the View tab, where you can Freeze Panes to lock specific rows and columns in place, or you can Split panes to create separate windows of the same worksheet.

Go to the below URL, watch the video (1:27 minutes length) for quick understanding