Locking Records Conditionally
There is an Excel file that teaches how to perform the Locking Records Conditionally operation.
Excel Template for Locking Records Conditionally
This workbook demonstrates locking records conditionally with formulas on a 27-row data layout.
Hope it is useful.