how can i break the below array formula to two when loading macro to avoid the limitation of 255 characters?
thanks guys.
Selection.FormulaArray = _
"=IF(INDEX(schedule!C[1],MATCH(result!RC1,schedule!C1,0))="""","""",TEXT(MIN(IFERROR(TIMEVALUE(LEFT(INDEX(schedule!C[1],MATCH(result!RC1,schedule!C1,0)):INDEX(schedule!C[1],MATCH(result!R[1]C1,schedule!C1,0)-1),5)),1)),""hh:mm"")&"" - ""&TEXT(MAX(IFERROR(TIMEVALUE(MID(INDEX(schedule!C[1],MATCH(result!RC1,schedule!C1,0)):INDEX(schedule!C[1],MATCH(result!R[1]C1,schedul" & _
"1),7,5)),0)),""hh:mm""))"
thanks guys.
Selection.FormulaArray = _
"=IF(INDEX(schedule!C[1],MATCH(result!RC1,schedule!C1,0))="""","""",TEXT(MIN(IFERROR(TIMEVALUE(LEFT(INDEX(schedule!C[1],MATCH(result!RC1,schedule!C1,0)):INDEX(schedule!C[1],MATCH(result!R[1]C1,schedule!C1,0)-1),5)),1)),""hh:mm"")&"" - ""&TEXT(MAX(IFERROR(TIMEVALUE(MID(INDEX(schedule!C[1],MATCH(result!RC1,schedule!C1,0)):INDEX(schedule!C[1],MATCH(result!R[1]C1,schedul" & _
"1),7,5)),0)),""hh:mm""))"