cell formula vs VBA code

S_Wish

Board Regular
Joined
Jan 4, 2017
Messages
216
Hello everyone! As I looked through "Excel Questions" forum, I was amazed by variety of cell-formulas' usage (don`t know if named it right. its smth like writing in c1 "=a1+b1") along with VBA codes.
What is the advantage of cell formulas? only time? or there is something else?
 
This post was intended to make the list of reasons for using formulas rather than VBA code as complete as possible. Please feel free to add more arguments if you wish :)

J.Ty.
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Sounds like do someone like more formula-daughter or VBA-son? I like both.
Choosing of VBA or formula solution depends on tasks.
Sometimes they can be even combined to make solution simpler or easy in understanding.
Regardless VBA does not support multi-threading, using VBA on huge data can be much faster than formula solutions.
But with formulas all can achieve fast, good and a working result without any skills in programming.
BTW, formulas like chess are good for a brain :)
 
Last edited:
Upvote 0
Good points J.Ty.!

For any customized (in this case VBA based) solution, it is required to "maintain" as the future software upgrades come in. A functionality which was unavailable in previous versions may get introduced in the later version. So with version upgrade, macros may not work (sometimes!) or may become redundant. This maintenance perspective should be taken into account. But largely built-in functions will not face this.
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,734
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top