jocker_boy
Board Regular
- Joined
- Feb 5, 2015
- Messages
- 83
Hello,
i have this formula in excel in cell FN11:
=SUMPRODUCT(--(MOD(COLUMN(CL11:FM11)-COLUMN(CL11);2)=0);(MOD(COLUMN(CL11:FM11)<=MATCH(FO$3;$C$5:FM$5;FALSE);2));CL11:FM1
And i would like to add this formula to my VBA code considering that the columns can change.
So i already have defined this variables:
ic - Inicial column: CL
lc - last column FM
My goal is something similar to this:
=SUMPRODUCT(--(MOD(COLUMN(Cells(11,ic),Cells(11,lc))-COLUMN(Cells(11,ic);2)=0);(MOD(COLUMN(Cells(11,ic),Cells(11,lc))<=MATCH(Cells(11,lc+2);Cells(5,ic),Cells(5,lc);FALSE);2));Cells(11,ic),Cells(11,lc)
Thanks,
Gonçalo
i have this formula in excel in cell FN11:
=SUMPRODUCT(--(MOD(COLUMN(CL11:FM11)-COLUMN(CL11);2)=0);(MOD(COLUMN(CL11:FM11)<=MATCH(FO$3;$C$5:FM$5;FALSE);2));CL11:FM1
And i would like to add this formula to my VBA code considering that the columns can change.
So i already have defined this variables:
ic - Inicial column: CL
lc - last column FM
My goal is something similar to this:
=SUMPRODUCT(--(MOD(COLUMN(Cells(11,ic),Cells(11,lc))-COLUMN(Cells(11,ic);2)=0);(MOD(COLUMN(Cells(11,ic),Cells(11,lc))<=MATCH(Cells(11,lc+2);Cells(5,ic),Cells(5,lc);FALSE);2));Cells(11,ic),Cells(11,lc)
Thanks,
Gonçalo