Macro to generate formulas into specific cells, based on various formulas

S_O_A_L

New Member
Joined
Aug 3, 2016
Messages
2
Hello, I am trying to create a spreadsheet for financial analysis. Please see document link below for the example document.


https://1drv.ms/x/s!AgcnhTO-WExMgWFKuV2TGVFPNUxD


End result, I want a Macro template to generate formulas based on various criteria. I want to be able to tweak this macro to suit my needs, and understand how it works, so explanations on important lines would be very helpful.
There are 3 sheets: Main, Cof and Dates. Dates sheet is used for a macro to generate dates which appear on top of Cof and Main sheets. Start date is the date when historical financial data is available, End date is the last date when its available (after this date data is forecasted) and last forecast year is what it says it is. Based on this dates are generated to fit my needs.


Historical data will be enter into Main sheet, up until the end date. I want a macro which would insert formulas on Cof sheet, based upon which growth coefficients would be calculated (say, Main! C5 is 1000, D5 is 1200, then I run the macro and formula in Cof! F3 is inserted, to return 5%.).


Then, on Cof!, after End date, coefficients will be inserted by hand, and based on them I want Main! to generate forecasts into the future, until last forecast date. Finally, the Main! Column A, the item number is important because formulas will only be generated in non-absolute item number rows. So, 2.1. 2.2. but not 2.


As I mentioned, ideally I want a macro template with explanations so that I could write the exact formulas and criteria and be able to tweak it in case i need to change anything, or need a similar macro for a similar problem.


Thank you.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Forum statistics

Threads
1,215,300
Messages
6,124,138
Members
449,145
Latest member
Suresh215

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