Hello,
I have the following formula which i know it exceeds 255 characters but i dont know how to divide it in order to be valid.
Ill attach the macro for a better understanding :
I know there's a way by using replace but i couldn't divide the formula in order to be valid. If there's someone who can help, please.
I have the following formula which i know it exceeds 255 characters but i dont know how to divide it in order to be valid.
Ill attach the macro for a better understanding :
Sub Macro2()
Dim playerReportSheet As Worksheet
Set playerReportSheet = ThisWorkbook.Worksheets("Player report")
Dim formulaPart1 As String
formulaPart1 = "=IF(('All transactions'!$C$3:C10000>='Player report'!F3)*('All transactions'!$C$3:C10000<'Player report'!F4)*('All transactions'!$B$3:B10000>='Player report'!$C$2)*('All transactions'!$B$3:B10000<'Player report'!$E$2),'All transactions'!$L$3:L10000)"
playerReportSheet.Range("G3").FormulaArray = formulaPart1
playerReportSheet.Range("G3").AutoFill Destination:=playerReportSheet.Range("G3:G26")
playerReportSheet.Range("G3:H26").NumberFormat = "#,##0.00"
playerReportSheet.Range("I3:I26").NumberFormat = "[Red]#,##0.00;[Color10]#,##0.00;General"
End Sub
I know there's a way by using replace but i couldn't divide the formula in order to be valid. If there's someone who can help, please.