Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Google Sheets - Function that generates range reference based on 'base' and 'offset' values

$
0
0

I'm looking for a function whose interface is the same as the OFFSET function but returns the range reference (ie. A2:A20) instead of the actual range itself.

Below, I've outlined this imaginary RANGE function with how its used and expected results.

API: RANGE(cell_reference, offset_rows, offset_columns, [height], [width])

Usage:

RANGE(A2, 0, 0, 18) => A2:A20

RANGE(A2, 0, 0, 18, 2) => A2:C20

RANGE(A2, 2) => C2

RANGE(A2, 0, 2) => A4

Thanks in advance!


Viewing all articles
Browse latest Browse all 9782

Trending Articles