I have recently came across the potential of use of defined names in complex formulas. It adds a lot of clarity, but I am afraid I went a bit far with it.
I was hoping it would give increased performance as some spreadsheets were starting to get really slow. Apparently, it may even hinder the performance further.
So, I have a few questions about performance in certain cases.
A. I used it for some conditional formatting. I had a few complex formatting formulas that evaluated all the rows in a structured table. So here are three scenarios, which performs best:
- having the whole formula on the conditional formatting tab
- having the formula as a defined name and then on the conditional formatting tab
- having the formula in a hidden column and link the conditional format to that true/false result per row
B. I used it also to shorten repeated criteria on a formula. what is best:
- having a defined name with the repeated criteria
- using LET function
- repeat the criteria
C. I used to repeat criteria (like ranges or condition) across several formulas. what is best:
- having the defined name
- repeat the formulas in all other formulas
D. This one is derivative of my sudden discovery of defined names. As I was working on structured tables, when I called [@someCln] I needed to add TableName[@SomeCln], when I inserted the formula in the defined name. To workaround this I created a series of defined names with Table[@Cln1] etc, and to the column ranges, so that I did not have to type them... now this seems totally stupid doesn't it?
In any case, if someone had the patience to read until now and has the knowledge of the performance impact, I would really appreciate some guidance... and I know it depends on the type of formulas...