Requirements:
- Basic knowledge of vba
- Use of tables/named ranges
When working with workbooks on and off, sometimes months between revisits to the workbook it can be hard to remember the data structure and formula set up.
This is how I work around this problem and ensure that I within a few minutes will have an overview of the calculations done.
In this example I will show how a formula for calculating bonuses can be simplified.
Formula appearance without table or UDF
Formula:
Please Login or Register to view this content.
The logic in this formula can be hard to extract at first glance.
Formula appearance with table and no UDF
Formula:
Please Login or Register to view this content.
With tables it just got a bit easier to read as you are informed of the cells used in the calculation
Formula appearance with table and UDF
User defined function inserted in a module:
Use of the function![]()
Please Login or Register to view this content.
Formula:
Please Login or Register to view this content.
This tells you exactly what is happening at a first glance, and you can allways go deeper into the code to read the specifics.
Attached is a file demonstrating all three scenarios
Bookmarks