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