C
CalumMurdo Kennedy
Hi,
I'm trying to put an array formula (
=MIN(IF(RC[-34]:RC[-5]<=1,MAX(RC[-34]:RC[-5]),RC[-34]:RC[-5])) ) into
each row of a selection. I've been able to do this with the
following:
Set MyRows = Range(Selection, Selection.End(xlDown))
i = MyRows.Rows.Count
For j = 2 To i Step 1
Cells(j, 52).FormulaArray =
"=MIN(IF(RC[-34]:RC[-5]<=1,MAX(RC[-34]:RC[-5]),RC[-34]:RC[-5]))"
Next j
However, it takes quite a while once the number of rows increases
above two hundred or so. Can anyone think of a faster method as I
expect this to grow to about eight hundred rows or so and I can't
handle that much caffeine!
Any help is greatly appreciated (as always!)
Best Regards,
CalumMurdo Kennedy
www.taekwondo.freeserve.co.uk
I'm trying to put an array formula (
=MIN(IF(RC[-34]:RC[-5]<=1,MAX(RC[-34]:RC[-5]),RC[-34]:RC[-5])) ) into
each row of a selection. I've been able to do this with the
following:
Set MyRows = Range(Selection, Selection.End(xlDown))
i = MyRows.Rows.Count
For j = 2 To i Step 1
Cells(j, 52).FormulaArray =
"=MIN(IF(RC[-34]:RC[-5]<=1,MAX(RC[-34]:RC[-5]),RC[-34]:RC[-5]))"
Next j
However, it takes quite a while once the number of rows increases
above two hundred or so. Can anyone think of a faster method as I
expect this to grow to about eight hundred rows or so and I can't
handle that much caffeine!
Any help is greatly appreciated (as always!)
Best Regards,
CalumMurdo Kennedy
www.taekwondo.freeserve.co.uk
, the only problem is that the array formula does not change according to its position, so each one refers to the first row, is this a result of the manual calculation? Would it be an option to put the j value into the formula (I tried it but got an error)