swaink
Active Member
- Joined
- Feb 15, 2002
- Messages
- 432
Hi All
I have been trying without success to apply a formula using VBA to a range on a single row.
I want to use VBA to add the following formula starting at column N, I intend to use lastrow = range("A65535").end(xlup).row and use that result as part of the formula build to cater for increasing rows, I also intend to find the last column in the range.
=SUM(IF(ISNUMBER(N6:N207),N6:N207,0)/100*$I$6:$I$207)
When the formula is reflected across the row the last part of the formula would anchor to column I.
However I just can't seem to get this to work and wonder if someone could assist me in solving this problem please?
All advice appreciated
Regards
Kevin
I have been trying without success to apply a formula using VBA to a range on a single row.
I want to use VBA to add the following formula starting at column N, I intend to use lastrow = range("A65535").end(xlup).row and use that result as part of the formula build to cater for increasing rows, I also intend to find the last column in the range.
=SUM(IF(ISNUMBER(N6:N207),N6:N207,0)/100*$I$6:$I$207)
When the formula is reflected across the row the last part of the formula would anchor to column I.
However I just can't seem to get this to work and wonder if someone could assist me in solving this problem please?
All advice appreciated
Regards
Kevin