Hi,
I want to put different text name for value depend on to which ranges value belong. My ranges:
0 - 15: text name: "AAAA"
6-28: text name: "BBBBB"
more than >29 : "CCCCC"
I have below code, but I know that my condition are wrong:
are you able to help?
I want to put different text name for value depend on to which ranges value belong. My ranges:
0 - 15: text name: "AAAA"
6-28: text name: "BBBBB"
more than >29 : "CCCCC"
I have below code, but I know that my condition are wrong:
Code:
looking_date = ws.Range("B2").Value
if looking_date < 15 then
ws2.Range("C2").Value = "AAAA"
Else if looking_date < 28 then
ws2.Range("C2").Value = "BBBB"
Else
ws2.Range("C2").Value = "CCCC"
are you able to help?