I basically have multiple variables that I want to categorize. I have a list of which variable goes into which category however given I have 40,000 entries doing it manually would be timely.
Basically my data is such that a,b,c are in Group A, d,e,f in Group B and so on. I was trying to use the Select Case but i can't figure out how to run it on a range; meaning, I have variables in column A. I want it to check each cell in column A and suppose if its d then write "Group B" in column B. This is all i could manage as a beginner
Case "a", "b", "c"
cells(1,2).Value = "Group A"
Case Else
cells(1,2).Value = "Not Defined"
End Select
End Sub