This formula r1c1 stuff is like voodoo. There has to be documentation of it soemwhere. Anyway, here's my question:
Why doesn't the computer like this?
Worksheets("QOutput").Cells(x, y).FormulaR1C1 = "=SUMIF('R'!c[5]:c[5],QOutput!r[x]c[1]&'Q','R'!c[y+11]:c[y+11])"
Since the only way I can think of passing two parameters through the sumif statement is by concatenating them, I do that in the second parameter here: QOutput![r[x]c[1]&'Q'
I'd like the output in the cell to be:
=sumif(R!e:e,1Q,R!l:l)
where
x = 13
y=2
QOutput!a13.value = 1
Thanks for the help
Why doesn't the computer like this?
Worksheets("QOutput").Cells(x, y).FormulaR1C1 = "=SUMIF('R'!c[5]:c[5],QOutput!r[x]c[1]&'Q','R'!c[y+11]:c[y+11])"
Since the only way I can think of passing two parameters through the sumif statement is by concatenating them, I do that in the second parameter here: QOutput![r[x]c[1]&'Q'
I'd like the output in the cell to be:
=sumif(R!e:e,1Q,R!l:l)
where
x = 13
y=2
QOutput!a13.value = 1
Thanks for the help