How do I create a cell block so I can search the whole block at once?

Solution 1:

Grouping cells using a fence will not create a cell block. Each cell (room) needs to be part of the same building (foundation):

Foundation

See this example of how to lay out a cell block:

Cell Block

It is one large building with walls dividing up the space. Once you have cells in a building they will be searched when you select "search cell block".

More than one "cell block" can exist within the same building (foundation) if the corridors are separated with doors. (Thanks for pointing that out Rory)