By default all cells are protected but that only becomes active if you
protect the sheet. So to do what you want select all the cells on a sheet then
Format|Cells|protection
Remove the locked checkmark
Then
select the cells you want to lock and repeat the above steps but insert the
locked checkmark
Protect the sheet and your done.