• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Help in IF( And( or) Statement

Hi Team,

I need to update month by number.

Example : - if 1=jan, 2 - Feb

please help on this formula..

Month
1
3
5
4
i used this formula getting error please help on same

if(or(and(A2="1","Jan"),and(A2="5","MAY"))

Thanks
Jawahar
 
What also works if you have a modern version
=SWITCH(A2, 1, "Jan", 2, "Feb", 3, "Mar", ...)
or for older versions
=LOOKUP(A2, {1,2,3,4,5,6,7,8,9,10,11,12},{"Jan","Feb,"Mar", ....,"Dec"})
or
=INDEX({"Jan","Feb,"Mar", ....,"Dec"}, A2)
or ...

Many ways to Rome in this case.
 
Back
Top