Thanks Palmetto, but his formula does not work!

Ive even tried it on a simple 3x5 table, to no avail!