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 ...
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 ...