grimr33f3r
New Member
- Joined
- Jul 19, 2007
- Messages
- 5
Hi all, hope you can help with this one.
Im using this formula
=INDEX(range,SMALL(IF(siccodes=G$2,ROW(siccodes)),ROW(1:1)),3) but have to use it several times in different locations, rather than copy and paste and then editing it I was trying to record a macro to make the adjustments for me as I paste it.
This is what Ive pretty much got:
Selection.FormulaArray = _
"=INDEX(range,SMALL(IF(siccodes=RC[-2],ROW(siccodes)),ROW(R[-679])),3)"
End Sub
verythings fine except for the part in bold, I need it to stay at 1:1, however everything I have tried has screwed it up.
Any help is appreciated, thanks
Im using this formula
=INDEX(range,SMALL(IF(siccodes=G$2,ROW(siccodes)),ROW(1:1)),3) but have to use it several times in different locations, rather than copy and paste and then editing it I was trying to record a macro to make the adjustments for me as I paste it.
This is what Ive pretty much got:
Selection.FormulaArray = _
"=INDEX(range,SMALL(IF(siccodes=RC[-2],ROW(siccodes)),ROW(R[-679])),3)"
End Sub
verythings fine except for the part in bold, I need it to stay at 1:1, however everything I have tried has screwed it up.
Any help is appreciated, thanks