I have a (long) formula that is functioning quite well.
However, I now need to be able to pick up any variations of "na" that I could potentially run across (NA, N/A, etc.).
In other words, I would like to basically pick up a wildcard value such as "n*".
I understand that "Like" is probably the way to go, but am having some difficulties with any forms that I have come up with so far...
Thanks in advance!
However, I now need to be able to pick up any variations of "na" that I could potentially run across (NA, N/A, etc.).
In other words, I would like to basically pick up a wildcard value such as "n*".
I understand that "Like" is probably the way to go, but am having some difficulties with any forms that I have come up with so far...
Thanks in advance!
Code:
'Formula in column C - evaluating column B.
'However, there may be variations of "na."
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]=""na"","""",IF(RC[-1]="""","""",IF(AND(IF(ISNUMBER(FIND(""."",RC[-1])),LEN(RC[-1])-FIND(""."",RC[-1]),0)>=2,IF(ISNUMBER(FIND(""."",RC[-1])),LEN(RC[-1])-FIND(""."",RC[-1]),0)<=4),"""",""ERROR"")))"
'CONDITIONAL AutoFill based on last row in column A - 2 header rows.
If Last_Row_ColA > 3 Then
Selection.AutoFill Destination:=Range("C3:C" & Last_Row_ColA)
End If