Hi all, I am having a problem with the following Excel formula:WS_2.Range("BJ" & CStr(Temp_Cell)).FormulaArray = "=SUM((DATE(YEAR('SOURCE TM DATA'!$AJ$2:$AJ$" & LastRow & " ),MONTH('SOURCE TM DATA'!$AJ$2:$AJ$" & LastRow & " ),1)<=DATEVALUE(""1/""&LEFT(L" & CStr(Temp_Cell) & ",5)&""/2010""))*('SOURCE TM DATA'!$AJ$2:$AJ$" & LastRow & " <> """")*('SOURCE TM DATA'!$Q$2:$Q$" & LastRow & "=""OPS - Investment Distribution & Operations Service"")*1)"
If I reduce the length of the string "OPS - Investment Distribution & Operations Service" it works. Also if I simply type the formula into excel without reducing the length of the string, it also works. So I do not think it is the length of the formula in excel. I am thinking I may have to split the formula into two parts but I am not sure how I will do that either.
Any help would be appreciated.
If I reduce the length of the string "OPS - Investment Distribution & Operations Service" it works. Also if I simply type the formula into excel without reducing the length of the string, it also works. So I do not think it is the length of the formula in excel. I am thinking I may have to split the formula into two parts but I am not sure how I will do that either.
Any help would be appreciated.