fairwinds
MrExcel MVP
- Joined
- May 15, 2003
- Messages
- 8,638
Hi,
Could anyone help me with the code that does the same as this formula =SUMIF($A3:INDIRECT(ADDRESS(ROW()+$CO2;1;4));$A2+1;CX3:INDIRECT(ADDRESS(ROW()+$CO2;COLUMN();4)))*$D2+J2*$D2
I have a macro that puts this in several cells and then copy and paste special values.
Cells(a, 102).FormulaR1C1 = _
"=SUMIF(R[1]C1:INDIRECT(ADDRESS(ROW()+RC93,1,4)),RC1+1,R[1]C:INDIRECT(ADDRESS(ROW()+RC93,COLUMN(),4)))*RC4+RC[-92]*RC4"
However I cannot figure out the code that just does the job.
Thanks in advance
Could anyone help me with the code that does the same as this formula =SUMIF($A3:INDIRECT(ADDRESS(ROW()+$CO2;1;4));$A2+1;CX3:INDIRECT(ADDRESS(ROW()+$CO2;COLUMN();4)))*$D2+J2*$D2
I have a macro that puts this in several cells and then copy and paste special values.
Cells(a, 102).FormulaR1C1 = _
"=SUMIF(R[1]C1:INDIRECT(ADDRESS(ROW()+RC93,1,4)),RC1+1,R[1]C:INDIRECT(ADDRESS(ROW()+RC93,COLUMN(),4)))*RC4+RC[-92]*RC4"
However I cannot figure out the code that just does the job.
Thanks in advance