You can pass a range to a UDF as a named range, or directly:

=BS(A1:G26, 3)