Racer
09-11-2011, 10:46 AM
When a copying a formula left to right, how do you make it so that
=SUMIFS(Data!$F:$F,Data!$B:$B,$A3,Data!$D:$D,A3)
goes to
=SUMIFS(Data!$F:$F,Data!$B:$B,$A3,Data!$D:$D,A4)
If I do $A3 or $A$3, the part in bold stays at A3 when copying from left to right. If I do A$3 or A3 the part in bold goes to B3, C3, D3, etc. when copying from left to right. Everything else is working how I want it to.
I could do it manually in a 2 or 3 minutes but it's for an Excel VBA class I'm taking so I have to write a Macro that does it. Thanks.
=SUMIFS(Data!$F:$F,Data!$B:$B,$A3,Data!$D:$D,A3)
goes to
=SUMIFS(Data!$F:$F,Data!$B:$B,$A3,Data!$D:$D,A4)
If I do $A3 or $A$3, the part in bold stays at A3 when copying from left to right. If I do A$3 or A3 the part in bold goes to B3, C3, D3, etc. when copying from left to right. Everything else is working how I want it to.
I could do it manually in a 2 or 3 minutes but it's for an Excel VBA class I'm taking so I have to write a Macro that does it. Thanks.