My original post has been superceded by built-in Range functions now trialing in Vassal v3.7beta4.
A broad set of functions are available (see below). In particular, RangeInCells(x,y)
has proved successful for me to replace the long and grid-specific formula that I presented earlier. Kudos and thanks to @Brent_Easton for delivering another great Vassal feature!