Hello
I have been working on a formula which will sum all of the numbers for a set of cells whose column and row identifiers are automatically calculated to match a set of criteria inputted into some other cells.
I have this working but I want to roll it out to other sheets (same design) where the number of cells to be summed will be different. As this means some of the INDIRECT() references are now blank, it throws up an error since the result of the indirect function returns N/A, which cannot be summed. This is fixable if I remove these statements from the overall formula, but this defeats the purpose of being able to have a single formula that fits all.
Is there anything that can be done to improve this?
Here is the code:
The idea here is that:
- column AH is where I input the content so, if it is blank then it would add nothing to the sum.
- column AJ contains a lookup of the matching column, eg $M
- if either AH is blank, the blank in column AJ will add nothing to the sum (ie, ignoring it)
I know that I can use SUM , which I did have but wondered if it was what was causing the error and have not had time to change it back yet
Thanks for any help
Bookmarks