Locking rows in Microsoft Excel is a useful feature that helps protect the data in those rows from being accidentally modified or deleted. Locked rows can still be viewed and edited, but they require the user to first unlock them. This can be helpful for preventing accidental changes to important data, such as formulas or headings.
To lock a row in Excel, simply select the row or rows you want to lock, then right-click and select “Format Cells.” In the “Protection” tab, check the box next to “Locked” and click “OK.” The row or rows will now be locked.