Making this formula work
On second thought, since you wouldn't be able to copy that and have it change
based on what row you were on, I made the following modification to it.
=IF(SUM(IF(N(INDIRECT(CHAR({7,10,13,16} + 64 + 1) & ROW())) = 4, 1, 0))=0,0,
SUM(IF(N(INDIRECT(CHAR({7,10,13,16} + 64 + 1) & ROW())) = 4,
N(INDIRECT(CHAR({7,10,13,16} + 64) & ROW())),
0))/SUM(IF(N(INDIRECT(CHAR({7,10,13,16} + 64 + 1) & ROW())) = 4, 1, 0)))
"Kleev" wrote:
Thank you very much. You answered my question, and I was able to adapt one
of your solutions (after much time and toil) to do what I had originally set
out to do. However, I don't think my answer ends up being any better than
what the OP on the other forum started with, so will not post this answer
there. But what I finally came up with is:
=IF(SUM(IF(N(INDIRECT(CHAR({7,10,13,16} + 64 + 1) & "10")) = 4, 1, 0))=0,0,
SUM(IF(N(INDIRECT(CHAR({7,10,13,16} + 64 + 1) & "10")) = 4,
N(INDIRECT(CHAR({7,10,13,16} + 64) & "10")),
0))/SUM(IF(N(INDIRECT(CHAR({7,10,13,16} + 64 + 1) & "10")) = 4, 1, 0)))
Probably could be much simplified, but I feel lucky to have gotten this to
work.
"Peo Sjoblom" wrote:
Use
=SUM(N(INDIRECT(CHAR({7,10,13,16} + 64) & "10")))
or if you just want to sum every third cell from G10 to P10
=SUMPRODUCT(--(MOD(COLUMN(G10:P10),3)=1),G10:P10)
--
Regards,
Peo Sjoblom
|