Locking cell range in Excel

I was working on an Excel document and realised that some of the cells were locked (the grey areas in the image. I was wondering how this is accomplished.

enter image description here


All columns to the right have been hidden (using Ctrl+0 for instance)

All columns at the bottom have been hidden (using Ctrl+9 for instance)