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 ...
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.
A new COPILOT function in Excel lets you use AI in a formula. The new skill is now available to Microsoft 365 insiders. Reduces some of the complexity involved in creating formulas. Get more in-depth ...
The LAMBDA function in Excel is transforming how users handle formulas by enabling the creation of custom, reusable functions. This capability simplifies complex calculations, reduces errors, and ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results