I want "TRUE" output only if individual values are also equal besides the total values.I am just including a part of code for which I am not getting correct output. I am trying to get the output as attached but I am receiving incorrect output with the following code. Please help me understand my mistake:
Dim aPRTS, bNIMS,d19, d8, d25, ud, p19, p8, p25, du19, du8, du25, AudLastCol,AudLastRow As Long
For l = 2 To AudLastRow
aPRTS = .Cells(l, AudLastCol).Value
bNIMS = .Cells(l, NIMsLastCol).Value
d19 = .Cells(l, Application.Match("Deployed(1.9)", .Range("A1:A" & AudLastCol), 0)).Value
d8 = .Cells(l, Application.Match("Deployed (800)", .Range("A1:A" & AudLastCol), 0)).Value
d25 = .Cells(l, Application.Match("Deployed (2.5)", .Range("A1:A" & AudLastCol), 0)).Value
p8 = .Cells(l, Application.Match("Total-800-PRTS", .Range("A1:A" & AudLastCol), 0)).Value
p19 = .Cells(l, Application.Match("Total-1900-PRTS", .Range("A1:A" & AudLastCol), 0)).Value
p25 = .Cells(l, Application.Match("Total-2500-PRTS", .Range("A1:A" & AudLastCol), 0)).Value
ud = .Cells(l, Application.Match("Deployed (Unassigned)", .Range("A1:A" & AudLastCol), 0)).Value
du19 = d19 + ud
du8 = d8 + ud
du25 = d25 + ud
If aPRTS = bNIMS Then
If (p19 = d19) And (p8 = d8) And (p25 = d25) Then
.Cells(l, AudLastCol + 1).Value = "TRUE"
.Cells(l, AudLastCol + 3).Value = "No Action required."
ElseIf (p19 = du19) And (p8 = d8) And (p25 = d25) Then
.Cells(l, AudLastCol + 1).Value = "TRUE"
.Cells(l, AudLastCol + 3).Value = "No Action required."
ElseIf (p19 = d19) And (p8 = du8) And (p25 = d25) Then
.Cells(l, AudLastCol + 1).Value = "TRUE"
.Cells(l, AudLastCol + 3).Value = "No Action required."
ElseIf (p19 = d19) And (p8 = d8) And (p25 = du25) Then
.Cells(l, AudLastCol + 1).Value = "TRUE"
.Cells(l, AudLastCol + 3).Value = "No Action required."
Else
.Cells(l, AudLastCol + 1).Value = "FALSE"
.Cells(l, AudLastCol + 2).Value = "Check Manually"
.Cells(l, AudLastCol + 3).Value = "Band wise Carrier Mismatch."
End If
End If
Next l