+ Reply to Thread
Results 1 to 2 of 2

Beauty of formulas and comparison with VBA solutions

  1. #1
    Registered User
    Join Date
    05-29-2015
    Location
    Germany
    MS-Off Ver
    2010
    Posts
    27

    Beauty of formulas and comparison with VBA solutions

    Hi, I've been thinking about this for a while. I'm curious what are your opinions on this:

    1) Is incorporation of less formulas always a better solution? Or should we also reflect computing difficulty of the formulas used? If we agree with the latter, we can say that the beauty of an excel solution is based on how fast the computation is, how much of memory the operation takes.

    2) When should I stop using formulas and give VBA a chance while both solutions are feasible? When you have to use 10 formulas to achieve something easily achievable with VBA, it is clearly wrong not to use VBA. Despite that, I sometimes feel tempted to solve problems only by formulas, because it feels like defeating Goliath with my littleness of David.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Beauty of formulas and comparison with VBA solutions

    Yes, some formula solutions are faster than others, volatile are usually worse for the workbook than non volatile and array formulas generally perform worse than non array. VBA tends to be slower than foul as at achieving the same thing and generally a formula solution is preferred over a VBA solution.

    That said it's not cut and dry there are plenty of exceptions, a single array formula can perform better than many Bon array to achieve the same thing and VBA can sometimes be a better choice.

    In general the two things to consider are performance and clarity of solution, don't be tempted to over optimise at the cost of ease of maintenance, build for maintenance first then optimise.


    Sent from my iPhone using Tapatalk

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Hi, I'm new here, looking for a few solutions
    By Gifted Ed in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-17-2014, 08:58 PM
  2. Temporal comparison formulas to determine acceptability of signature
    By Enda80 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2014, 12:55 PM
  3. Replies: 2
    Last Post: 11-17-2009, 09:35 AM
  4. Replies: 5
    Last Post: 08-16-2009, 11:11 AM
  5. Replies: 2
    Last Post: 07-20-2005, 12:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1