View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default USING "IF" STATEMENTS FOR MONTHS OF YEAR(IF 1=JANUARY)

=IF(Date!D2="","",TEXT(DATE(2000,Date!D2,1),"mmm") &".")



Tina wrote:

I Have the following if statement in my excel spreadhseet. the only problem
is that I cannot finish out the year with Sept.-Dec. (I get an error that
says the statement is too big) What can I do to make this formula work for
the whole year??

=IF(Date!D2=1,"JAN.",IF(Date!D2=2,"FEB.",IF(Date!D 2=3,"MAR.",IF(Date!D2=4,"APR.",
IF(Date!D2=5,"MAY",IF(Date!D2=6,"JUN.",IF(Date!D2= 7,"JUL.",IF(Date!D2=8,"AUG."))))))))


--

Dave Peterson