Finding the biggest square of specific units in a given matrix of these units is a standard dynamic programming problem. The examples in Google for it are above 18 million, thus I would simply show how it is done with …

C# – Find the Biggest Square in a Matrix – What can Excel and VBA add to it? Read more »