I want to write a code that does "if cell(A) in row not empty then set text "Yes" in cell B in the same row, and this should loop through the whole sheet.
I do not have a code.
Sub Check()
Dim N As Long, i As Long, j As Long
N = Cells(Rows.Count, "A").End(xlUp).row
j = 2
For i = 2 To N
If Cells(i, "A").Value = "??" Then
Cells(j, "B").Value = "Yes"
j = j + 1
End If
Next i
End Sub
but how do I make it check "if not empty" as the value?