I'm wanting to automate a few things in Excel, problem is I am definitely not a programmer / scripter so this is all foreign to me.
I have a list that changes in length every time I import a new set of values, what I want is for the program to check column a (with a header) for certain values IE:
Sub Grade()
If Range("A2").Value = 2031 Then
Range("H2").Value = "Grade 4"
ElseIf Range("A2").Value = 2030 Then
Range("H2").Value = "Grade 5"
ElseIf Range("A2").Value = 2029 Then
Range("H2").Value = "Grade 6"
ElseIf Range("A2").Value = 2028 Then
Range("H2").Value = "Grade 7"
ElseIf Range("A2").Value = 2027 Then
Range("H2").Value = "Grade 8"
ElseIf Range("A2").Value = 2026 Then
Range("H2").Value = "Grade 9"
ElseIf Range("A2").Value = 2025 Then
Range("H2").Value = "Grade 10"
ElseIf Range("A2").Value = 2024 Then
Range("H2").Value = "Grade 11"
ElseIf Range("A2").Value = 2023 Then
Range("H2").Value = "Grade 12"
End If
End Sub
That works fine to input the value in cell H2, but I want it now to go down the column and check the rest, which is where I'm having difficulties. Problem is this time there are 15 entries but when I do this again there could only be 3. So I'm looking to have it check the column and run that script as long as the cell isn't blank.
