I am working on a spreadsheet that totals up the amount of people attending a session, their age and gender. The sheet only used to contain figures down to cell 221 but as we have expanded we are now down to about 300. To find out how many are of a certain age i have been using this formula which has been working fine.In the formula K is the column that contains number of people.
=SUMPRODUCT((K27:K221)*((Age=8)+(Age=9)+(Age=10)))
However when i change the formula to anything above K221, for example:
=SUMPRODUCT((K27:K222)*((Age=8)+(Age=9)+(Age=10)))
It comes up with an #N/A error. I can tell by tracing the error that although the K column has gone down to 222, it is only reading data in the age column to 221.
Is anyone able to tell me why or what i can do to make the two columns match each other?
I understand this is a hard query to understand when you can't actaully see the spreadsheet!
Many Thanks
Longnos
=SUMPRODUCT((K27:K221)*((Age=8)+(Age=9)+(Age=10)))
However when i change the formula to anything above K221, for example:
=SUMPRODUCT((K27:K222)*((Age=8)+(Age=9)+(Age=10)))
It comes up with an #N/A error. I can tell by tracing the error that although the K column has gone down to 222, it is only reading data in the age column to 221.
Is anyone able to tell me why or what i can do to make the two columns match each other?
I understand this is a hard query to understand when you can't actaully see the spreadsheet!
Many Thanks
Longnos