To phrase it differently, how many cells must you go down, up, left, and right before you find a cell with value “#”?
The desired end result is for the cell to display how directions you can go at least ‘x’ cells before you find a cell that has the value “#”.
I am a bit of a newb, and am sure this question is not exactly the normal sort, but I can’t seem to find any information anywhere that would point me to a solution of any kind.
battleship board distribution of possible placements for four tile long ship: turn 0

battleship board distribution of possible placements for four tile long ship: turn 1

I fiddled a little bit before going to work.
Ended up with a partial formula
The formula needs workout for MATCH to left, up and down, similar to the MATCH in the formula
The Excel file is available in
http://www.bumpclub.ee/~jyri_r/Excel/Battleship_distance.xls