Hi All,
Please help me solving this error. I have read several post on this error but still I am unable still unable to find solution.
This error occurs since below array formula have extended more than 255 char.
Please help me how should I break this formula to make my code work. I am using Excel 2016 version. Thanks in advance.
Sub Macro2()
Range("C16").Select
Selection.FormulaArray = _ "=IF(ROWS(Template!R16C:RC)>R8C6,"""",INDEX(THICK!R3C1:R1000C[-2],SMALL(IF(THICK!R3C1:R1000C1>=Template!R7C3,IF(THICK!R3C1:R1000C1<=Template!R8C3,IF(THICK!R3C1:R1000C1>=Template!R9C3,IF(THICK!R3C1:R1000C1<=Template!R10C3,ROW(THICK!R3C1:R1000C1)-ROW(THICK!R3C1)+1)))),ROWS(Template!R16C:RC))))"
Selection.AutoFill Destination:=Range("C16:C21")
Range("C16:C21").Select
Range("B14").Select
End Sub
Please help me solving this error. I have read several post on this error but still I am unable still unable to find solution.
This error occurs since below array formula have extended more than 255 char.
Please help me how should I break this formula to make my code work. I am using Excel 2016 version. Thanks in advance.
Sub Macro2()
Range("C16").Select
Selection.FormulaArray = _ "=IF(ROWS(Template!R16C:RC)>R8C6,"""",INDEX(THICK!R3C1:R1000C[-2],SMALL(IF(THICK!R3C1:R1000C1>=Template!R7C3,IF(THICK!R3C1:R1000C1<=Template!R8C3,IF(THICK!R3C1:R1000C1>=Template!R9C3,IF(THICK!R3C1:R1000C1<=Template!R10C3,ROW(THICK!R3C1:R1000C1)-ROW(THICK!R3C1)+1)))),ROWS(Template!R16C:RC))))"
Selection.AutoFill Destination:=Range("C16:C21")
Range("C16:C21").Select
Range("B14").Select
End Sub