I use excel to build financial models. First, I download excel sheets from the SEC website and then go through a manual, hideous process of using specific columns, substituting them into formulas and then getting my results.
I was wondering if it is possible to code a program that would pull out specific data from my excel spreadsheet and compute using a set formula. For example, if I need to calculate: leverag = assets/equity .The assets can be found on excel in the cell next to “Total assets” and equity next to “total stockholders’ equity”. Is there a code that could pull out the data from these cells and then compute using a formula?
Example data that I use can be found here https://www.sec.gov/ix?doc=/Archives/edgar/data/789019/000156459020034944/msft-10k_20200630.htm#ITEM_6_SELECTED_FINANCIAL_DATA page 57
The leverage for this example is equal to 2.5469 for year 2020 (because total assets=301311 and total equity = 118304, dividing assets by equity equals 2.5469)
I would really appreciate your answers, as they will make my life much easier (best Christmas present ever) :)