Yes. Couple of tips: use datatypes on your parameter declarations and your Function declaration, and "Range" is a (very commonly used) object in Excel so picking a different name for your function ...
If you’ve ever found yourself endlessly repeating the same formulas or tasks in Excel, you’re not alone. We’ve all been there—copying, pasting, and tweaking formulas across workbooks, only to realize ...
How-To Geek on MSN
How to use the ROWS function in Microsoft Excel
Create robust, backward-compatible Excel workbooks by leveraging the structural power of the ROWS function.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results