ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   UDF vs. Mega-Array-Formula (https://www.excelbanter.com/excel-discussion-misc-queries/202595-udf-vs-mega-array-formula.html)

Harry

UDF vs. Mega-Array-Formula
 
I am looking for feedback regarding whether I should pursue a solution as a
worksheet megaformula, or write a UDF using VBA instead.

I would prefer to use the megaformula instead of the VBA based solution for
speed purposes.

Question:
What criteria do you use to determine whether to pursue a solution via a
worksheet formula, or VBA?


for those who indicate case-by-case basis, can you elaborate what would make
you opt for the VBA instead of the mega formula?

thanks,
Harry


Jim Thomlinson

UDF vs. Mega-Array-Formula
 
Here is my general guideline. UDF's are a final resort only when conventional
formulas will not work or in the very rare instance where a UDF will be
faster than a standard formula.

To that end I have used UDF's only for things like counting colour formulas
and returning a numeric value as the spelled out text.
--
HTH...

Jim Thomlinson


"Harry" wrote:

I am looking for feedback regarding whether I should pursue a solution as a
worksheet megaformula, or write a UDF using VBA instead.

I would prefer to use the megaformula instead of the VBA based solution for
speed purposes.

Question:
What criteria do you use to determine whether to pursue a solution via a
worksheet formula, or VBA?


for those who indicate case-by-case basis, can you elaborate what would make
you opt for the VBA instead of the mega formula?

thanks,
Harry



All times are GMT +1. The time now is 12:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com