HI,
I am having this formula for adding a dynamic range. It does not work. Please help me.
ActiveCell.FormulaR1C1 = "=sum(offset($D$2,0,0,counta(D:D),1))"
Thanks
HI,
I am having this formula for adding a dynamic range. It does not work. Please help me.
ActiveCell.FormulaR1C1 = "=sum(offset($D$2,0,0,counta(D:D),1))"
Thanks
Remove the R1C1 after Formula. Or convert the formula to use R1C1 references - "=SUM(OFFSET(R2C4,0,0,COUNTA(C[3]),1))"
Tried that Echo, it did not work.
Thanks for helping.
Apologies misunderstood,try =SUM(INDIRECT("$D$2:"&ADDRESS(MATCH(2,1/(D:D<>""),1),COLUMN(D:D))))
This is an array formula so must be entered with Ctrl+Shift+Enter
Did not work either.
TryPlease Login or Register to view this content.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Thank you TMS. That worked perfectly.
You're welcome.
Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks