Hey community,
i use following VBA
formula was working fine, i only added last part
now i get 0 result. what am i doing wrong? i need it to sum if asm=asma
i use following VBA
Code:
Sub BonaquaASM1()Application.ScreenUpdating = False
Dim Markets As Worksheet, lr As Long
lr = Cells.Find("*", , xlValues, , xlRows, xlPrevious).Row
Set Markets = Sheets("sheet4")
Sheets("DATA").Range("A1:A" & lr).Name = "run"
Sheets("DATA").Range("L1:L" & lr).Name = "sifaris"
Sheets("DATA").Range("M1:M" & lr).Name = "inted"
Sheets("DATA").Range("E1:E" & lr).Name = "teri"
Sheets("DATA").Range("H1:H" & lr).Name = "asm"
Sheets("sheet4").Range("AP1:AP" & lr).Name = "ayi"
Sheets("sheet4").Cells(1, 44).Name = "asma"
Markets.Range("c1:c" & lr).Name = "MARKET"
With Sheets("DATA").Cells(2, "BB")
.FormulaArray = "=sum(if((isnumber(match(run,market,0)))*(sifaris>0)*(urun<>"""")*(not(isnumber(match(teri,ayi,0))))*(isnumber(match(asm,asma,0))),inted))"
.Value = .Value
End With
End Sub
formula was working fine, i only added last part
Code:
*(isnumber(match(asm,asma,0)))