If formula with 12 conditions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a date column and I want another column to sort only by the month of
the date column. So I want column B to look at column A and only read the
month - then translate it to a number.
If the first 2 numbers in (a2=01 then b3=1 , or a2=02 then b3=2, or a2=03
then b3=3.... ect)
Can this be done?
 
Hi
You could try something like
=TEXT(A2,"mm")
in B3.
Or simply
=MONTH(A2)
 
Hope your still here... I have one more condition...
If the A2 is blank, b3 should be blank ...
 
Hi
Try this:
=IF(A2<>0,MONTH(A2),"")

--
Andy.


tkacoo said:
Hope your still here... I have one more condition...
If the A2 is blank, b3 should be blank ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top