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 BYROW function in Microsoft Excel
BYROW replaces thousands of table formulas with one spill formula, making spreadsheets leaner and much more robust.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results