What I am trying to do (I dont' know if it is possible) is have R2C2 [SMALL(IF(R2C2) ....] be based on an activecell. Specifically, ActiveCell.Offset(-1, -3).
Is this possible?
I am trying to do this because this formula is in a loop and I need it to stay the same within the loop but change every time the loop re-loops.
Here is the part of the loop I am working on:
PHP Code:
Selection.FormulaArray = _ "=INDEX(Data!R1C8:R1000000C8,SMALL(IF(R2C2=Data!R[-4]C3:R1000000C3,ROW(Data!R[-4]C3:R1000000C3)-MIN(ROW(Data!R1C3:R1000000C3))+1,""""),ROW(Data!R[-4]C3)))" Dim x As Long x = ActiveSheet.UsedRange.Rows.Count ActiveCell.Copy Range(Cells(6, ActiveCell.Column), Cells(x, ActiveCell.Column))
Re: Create an INDEX formula in VBA where one cell is based on ActiveCell
Originally Posted by KAP123
What I am trying to do (I dont' know if it is possible) is have R2C2 [SMALL(IF(R2C2) ....] be based on an activecell. Specifically, ActiveCell.Offset(-1, -3).
Surround your VBA code with CODE tags e.g.;
[CODE]your VBA code here[/CODE]
The # button in the forum editor will apply CODE tags around your selected text.
Bookmarks