Alkuan
New Member
All,
I've been working on building a projected cash flow model for my company, and it's running extremely slowly. It takes 7-8 seconds to respond when i change a variable or cut/copy anything on the spreadsheet.
The basic premise of the workbook is as follows:
Thanks in advance for your suggestions/help!
Cheers,
Alkuan
I've been working on building a projected cash flow model for my company, and it's running extremely slowly. It takes 7-8 seconds to respond when i change a variable or cut/copy anything on the spreadsheet.
The basic premise of the workbook is as follows:
- User can enter default variables which are constant across all projects
- User can enter specific changes to these variables for some projects if desired
- Spreadsheet checks to see if values have been changed from default
- Cash flows are calculated on a month by month basis (50 years x 12 months Columns, 100 rows x 12 projects Rows) = ~720,000 cells
- A lot of PMT, PPMT, If, and Sum statements and some Hlookup's.
- Many of these cells require referencing several different variables, which may be default values or not. I believe this is the problem causing the slowdown, i'll describe my attempts to address this below.
- After cash flows are calculated, data can be analyzed on an annual or monthly basis, IRR's, NPV's, etc.
- Originally I had every reference to a variable doing a vlookup for that cell against a named range (CALCS) with the form Vlookup(Project#, CALCS, Column#, False)
- Since the Project#'s were sorted, i changed False to True, enabling binary search, which helped a bit.
- Next I eliminated all the Vlookup's, replacing them with direct references to a smaller number of vlookups (# of vlookups ~700,000-->~700). This barely helped.
- Finally I replaced those 700 vlookup's with Indexes, as the vlookup search term was a sequential number. This also barely helped.
Thanks in advance for your suggestions/help!
Cheers,
Alkuan