sourabh_ajmera
New Member
- Joined
- Jul 17, 2014
- Messages
- 36
Hello everybody,
How do i make this fomula dynamic? It is selecting a range of columns
The number of end columns keep on changing (increases daily)
i.e. "=IFERROR(AVERAGEIFS(RC11:RC172....here 172 will change to some other column but C11 will be constant
Formula:
ActiveCell.FormulaR1C1 = _
"=IFERROR(AVERAGEIFS(RC11:RC172,titlesw,"">=""&MONTH(R1C)&""/1/""&YEAR(R1C),titlesw,""<=""&MONTH(R1C)&""/""&DAY(DATE(YEAR(R1C),MONTH(R1C)+1,0))&""/""&YEAR(R1C)),0)"
Appreciate your help! Thank you in advance
How do i make this fomula dynamic? It is selecting a range of columns
The number of end columns keep on changing (increases daily)
i.e. "=IFERROR(AVERAGEIFS(RC11:RC172....here 172 will change to some other column but C11 will be constant
Formula:
ActiveCell.FormulaR1C1 = _
"=IFERROR(AVERAGEIFS(RC11:RC172,titlesw,"">=""&MONTH(R1C)&""/1/""&YEAR(R1C),titlesw,""<=""&MONTH(R1C)&""/""&DAY(DATE(YEAR(R1C),MONTH(R1C)+1,0))&""/""&YEAR(R1C)),0)"
Appreciate your help! Thank you in advance