Every financial model should contain a series of error checks and it is recommended to include a master error check and alert indicator in the freeze pane in each worksheet within the model.
This way if there is an issue in the model, the user will be notified that something is wrong either in the model mechanic or in the assumptions.
For more on typical error checks please refer to below link:
Building Integrity Checks in Project Finance Models (Manual & Template)
and sometimes the issue is with macros and by running certain macros the issue will be resolve. So my aim here is to insert a button in the model that contains a text that says “Ok” if there’s no issue meaning all sanity checks are satisfied and say something else if some of the checks are not satisfied. For example I want to tell my users, if you see this alert, then first click in this button and if the issue persists then go and check what’s wrong in the “Checks” sheet. Let’s see how we can do this.
Step 1: Go to the sheet where you listed all your error checks and create a Master check.
Step 2: In any cell type in an If formula with the text that you want the user to see and actions to take in case of errors. For example, I have macros in mu model so I want to tell the user to first click on the button and if the problem remains then go to Checks.
=IF(Master-Error-Check = 0; “OK”;”Please click on this button or if the issue persists go to Checks sheet and trace the issue”)
If you don’t have macros, you want to refer them to your “Checks” sheet to trace the error.
=IF(Master-Error-Check = 0; “OK”;”Please go to Checks sheet and trace the issue”)
Step 3: Use conditional formatting on the cells where you have If formula. For example I want to mark the cell as a flashy red if the checks are not satisfied and if all ok, I put a green color background.
Step 4: Once you are ok with the cell format and text, you simply copy and paste is as Linked Picture.
Step 5: Because you want to import the linked image button to other sheets within your model, you need to changed the link. So just simply click on it and go to another sheet and comeback to the same sheet and make the link. When you click on the image, the link will show as “Checks!$E$32” and not just “$E$32”.
Step 6: You can insert Macro or links to the image button if necessary.
Step 7: Copy and Paste the Image button to you Summary sheet and in the freeze pane in each worksheet within the model.
Ok, I hope you can use this in your models and if you know a more efficient and elegant way to do the same, please let me know.
All the best,
Hedieh