Hi All... I need help with this formula..
What it's supposed to do is IF (on that row Column E) = PASS Then that cell = "NA" and also IF (on that row Column E) = NONRATED --- AND --- (on that row Column G) = TRN then the cell will have a NA otherwise leave it blank.
Column E Column G Column J and K
---------- ---------- ---------------
PASS numerous options NA
NONRATED TRN NA
NONRATED TDV (blank cell out)
Code
Dim TRow As String
Do While Not IsEmpty(ActiveCell.Offset(0, -1))
TRow = ActiveCell.Row
Formula = "=IF(E" & TRow & " =""PASS"",""NA"","""") & (E" & TRow & "G" & TRow & "=""TRN"",""NA"","""")"
ActiveCell.Formula = Formula
ActiveCell.Offset(1, 0).Select
Loop
My formula code fails miserably... before I needed to add another criteria to the formula it was working fine... that code is below...
[/FONT]