Thanks for the responses Ian and Wayne. I thought/think adding more screenshots and explaining the source etc might only make it even more confusing. They're also very large tables!
I thought having the cell references in the formula would be sufficient to see what's happening, apologies if this isn't clear.
Basically the very first reference (in C2) will have different codes ("01-05", "01-06", "01-07"... and so on). Depending on which has been selected this formula will check to see if checkboxes have been ticked in column C, or if a quantity in column C is greater than 0, and then add up all the numbers that correspond to the codes above.
So column Z are the quantities relating to code "01-07"; column AD are the quantities relating to "01-08"; and column AH are the quantities relating to "01-09-1".
I though there must be a simpler formula so that instead of repeating the same full formula for every code, the formula will just select the amounts 4 columns over for each subsequent code....?
I also just wanted to check whether I was right about the size of this formula (having at least 15 different code references) was the reason it was so slow, or whether there was potentially something else wrong?