This is the formula that I am currently using:
=SUMPRODUCT((INDIRECT("A2"):INDIRECT("A"&(ROW()-1))=A359)*1)
It works great, but I would like to use this instead:
=SUMPRODUCT((INDIRECT("A2"):INDIRECT("A"&(ROW()-1))=INDIRECT("A"&(ROW())))*1)
Unfortunately I get a #VALUE!
. What am I doing wrong? Both INDIRECT("A"&ROW(()))
and A359
return the same value, so I'm not sure why this won't work.
The reason I am not using a simple COUNTIF
function is because I stripped my formula of all unnecessary components and only left the part that I am having trouble with (i.e. I need to use the SUMPRODUCT
formula and a COUNTIF
formula will not work)
Thanks in advance!