albertc30
Well-known Member
- Joined
- May 7, 2012
- Messages
- 1,091
- Office Version
- 2019
- Platform
- Windows
Hi all.
I hope everyone is well and been keeping safe.
I have tried this formula and I was happy untill now as, one it's way too big and two, it's not really doing what I wanted it to do.
=IF(C9=DATEVALUE("01/21"),"Jan",IF(C9=DATEVALUE("02/21"),"Feb",IF(C9=DATEVALUE("03/21"),"Mar",IF(C9=DATEVALUE("04/21"),"Apr",IF(C9=DATEVALUE("05/21"),"May",IF(C9=DATEVALUE("06/21"),"Jun", IF(C9=DATEVALUE("07/21"),"Jul", IF(C9=DATEVALUE("08/21"),"Aug", IF(C9=DATEVALUE("09/21"),"Sep", IF(C9=DATEVALUE("10/21"),"Oct",IF(C9=DATEVALUE("11/21"),"Nov", IF(C9=DATEVALUE("12/21"),"Dec",))))))))))))
The above only works for the first day of the month. I just tried say 01/02/21 in C9 and I get Feb but if I try 02/02/21 it shows nothing.
Now, I tried to do it the old way by ("*/02/21") using the * but the formula doesn't like it.
What amI doing wrong here please?
Much appreciated for all the help.
Thanks.
Albert.
I hope everyone is well and been keeping safe.
I have tried this formula and I was happy untill now as, one it's way too big and two, it's not really doing what I wanted it to do.
=IF(C9=DATEVALUE("01/21"),"Jan",IF(C9=DATEVALUE("02/21"),"Feb",IF(C9=DATEVALUE("03/21"),"Mar",IF(C9=DATEVALUE("04/21"),"Apr",IF(C9=DATEVALUE("05/21"),"May",IF(C9=DATEVALUE("06/21"),"Jun", IF(C9=DATEVALUE("07/21"),"Jul", IF(C9=DATEVALUE("08/21"),"Aug", IF(C9=DATEVALUE("09/21"),"Sep", IF(C9=DATEVALUE("10/21"),"Oct",IF(C9=DATEVALUE("11/21"),"Nov", IF(C9=DATEVALUE("12/21"),"Dec",))))))))))))
The above only works for the first day of the month. I just tried say 01/02/21 in C9 and I get Feb but if I try 02/02/21 it shows nothing.
Now, I tried to do it the old way by ("*/02/21") using the * but the formula doesn't like it.
What amI doing wrong here please?
Much appreciated for all the help.
Thanks.
Albert.