Advice on optimizing spreadsheet
Hi,
I have a spreadsheet that has multiple rows (10000) with several
compound If statements throughout one sheet of my workbook. An example
of such a statement is:
IF(C2<"",IF(C2<=$M$14,0,IF(C2=$M$15,$M$17,C2-$M$14)),"")
My question is: would it be faster for me to remove all the If
statements from this sheet and simply write a VBA subroutine that
would do the same thing?
I'm certain that it would make the spreadsheet more compact, but would
it improve performance?
I'm writing a Monte-Carlo simulation so performance is paramount for
me.
Thanks.
|