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 REDUCE function in Microsoft Excel
Macros are powerful, but they don't work on the web or mobile. I’ve switched to the native REDUCE function for my complex data tasks.
Problem:<BR>Where a VBA procedure has been developed referencing specific cells, the user of the spreadsheet then decides to insert a new row or col, which has the affect of offsetting all of your ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results