Thanks Pete, I'll give it a go. I might need to go over 40000 rows as
there maybe more to follow so I'll reference upto 50000. I understand
Excel can take 65000 rows but is there a general rule of thumb for how
many formulas Excel can take or does it depend on the complexity of
the formula as well as the number of formulas in the workbook? If not,
is it just trial and error on finding out when there is just too much
to cope with. It looks like it is definately not a hardware problem
and the spreadsheet is taking Excel to its limits.
Just think what is happening in the single SUMIF formula I gave you:
Excel will look at every cell in the range B1:B40000 on Sheet1 to see
if it matches with cell A1 on sheet2, and if it does then it will add
the corresponding value from column H in Sheet1 to a running total -
so that is 40,000 comparisons and 40,000 potential additions for just
one fomula. You say that you have 12 columns of formulae in Sheet2 and
20,000 rows, so those operations for one formula are then carried out
240,000 times, so no wonder that it takes so long. By using a full-
column reference, there are 65536 cells that are examined, so cutting
this down to 40,000 (or 42,000) will cut the time by a third at least.
There are also many ways of achieving a particular result in Excel,
and some formulae will execute more quickly than others. Array
formulae in particular will take a long time to calculate with large
arrays. It might be that your sheet could be designed in a different
way and thus speed things up. Charles William's site has some very
useful comments on optimising calculation speed in Excel:
http://www.decisionmodels.com/
Hope this helps.
Pete
> Thanks Pete, I'll give it a go. I might need to go over 40000 rows as
> there maybe more to follow so I'll reference upto 50000. I understand
[quoted text clipped - 73 lines]
>
> - Show quoted text -
Jacko - 16 Apr 2008 13:23 GMT
Thanks for your thoughts on this. I can see how a formula can spiral
well out of control from adding more and more rows. I'll have a big
rethink how it is put together.
> Just think what is happening in the single SUMIF formula I gave you:
>
[quoted text clipped - 98 lines]
> >
> > - Show quoted text -
Pete_UK - 16 Apr 2008 15:46 GMT
Glad to be of help, Steve.
Pete
> Thanks for your thoughts on this. I can see how a formula can spiral
> well out of control from adding more and more rows. I'll have a big
> rethink how it is put together.