Serving the Quantitative Finance Community

 
User avatar
PaperCut
Topic Author
Posts: 0
Joined: May 14th, 2004, 6:45 pm

Excel Calc Time

December 14th, 2006, 2:05 pm

Is there a clever way to determine which aspect of a big workbook is costing the most calc time?
 
User avatar
Traden4Alpha
Posts: 3300
Joined: September 20th, 2002, 8:30 pm

Excel Calc Time

December 14th, 2006, 2:49 pm

1. Use Excel's now() function to post the current time (or time deltas)2. Create some VBA code to log when the calculation hits certain key points.Neither are that easy (fails your cleverness test) because one has to get the dependencies right both upstream and downstream of the timing points. The timing code needs to be in a position that forces Excel to finish computing some chunks of the spreadsheet before calling the time function and forces Excel to call the time function before beginning other chunks of the spreadsheet. My impression of Excel's order of execution is that is NOT strictly row first or column first, but is based on the dependency graph and is affected by recent partial recalcs.
 
User avatar
MMP
Posts: 1
Joined: August 18th, 2005, 1:18 am

Excel Calc Time

December 14th, 2006, 8:10 pm

Check out the following site. FastExcel is designed for this purpose. http://www.decisionmodels.com/
 
User avatar
PaperCut
Topic Author
Posts: 0
Joined: May 14th, 2004, 6:45 pm

Excel Calc Time

December 14th, 2006, 9:38 pm

QuoteOriginally posted by: Traden4Alpha1. Use Excel's now() function to post the current time (or time deltas)2. Create some VBA code to log when the calculation hits certain key points.Neither are that easy (fails your cleverness test) because one has to get the dependencies right both upstream and downstream of the timing points. The timing code needs to be in a position that forces Excel to finish computing some chunks of the spreadsheet before calling the time function and forces Excel to call the time function before beginning other chunks of the spreadsheet. My impression of Excel's order of execution is that is NOT strictly row first or column first, but is based on the dependency graph and is affected by recent partial recalcs.Gotcha.Thanks!
 
User avatar
PaperCut
Topic Author
Posts: 0
Joined: May 14th, 2004, 6:45 pm

Excel Calc Time

December 14th, 2006, 9:38 pm

QuoteOriginally posted by: MMPCheck out the following site. FastExcel is designed for this purpose. http://www.decisionmodels.com/Thanks. I'll check it out