Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, I'm trying to record/write an array formula in VBA with an ISERROR formula on the front. I've tried recording and writing it with no success. When recording I got an Unable to Record error and when writing I got a unable to set the FormulaArray property of the range class error. The formula i have is FormulaArray = _ "=INDEX('Dispatch Summary'!R[-4]C:R[4995]C[78],SMALL(IF('Dispatch Summary'!R[-4]C:R[4995]C[78]=R1C2,ROW('Dispatch Summary'!R[-4]C:R[4995]C[78])),ROW(R[-4])),2)" The formula i need is =IF(ISERROR(INDEX('Dispatch Summary'!A1:CA5000,SMALL(IF('Dispatch Summary'!A1:CA5000=$B$1,ROW('Dispatch Summary'!A1:CA5000)),ROW(1:1)),2)),"zzz",INDEX('Di spatch Summary'!A1:CA5000,SMALL(IF('Dispatch Summary'!A1:CA5000=$B$1,ROW('Dispatch Summary'!A1:CA5000)),ROW(1:1)),2)) Is it possible to do? Thanks for any help. Simon |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA Code Optimization for Array Formulas | Excel Programming | |||
Array Formulas + VB Code | Excel Programming | |||
Writing a range to an array... | Excel Programming | |||
Writing Range to Array | Excel Programming | |||
Writing Array Formulas in VBA | Excel Programming |