Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 139
Default USING "IF" STATEMENTS FOR MONTHS OF YEAR(IF 1=JANUARY)

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."))))))))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 834
Default USING "IF" STATEMENTS FOR MONTHS OF YEAR(IF 1=JANUARY)

Try

=UPPER(TEVALUE("01-"&D2),"mmm"))

HTH

Bob

"Tina" wrote in message
...
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."))))))))



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default USING "IF" STATEMENTS FOR MONTHS OF YEAR(IF 1=JANUARY)

Either change to excel 2007, or use
=UPPER(TEXT(DATE(1900,Date!D2,1),"mmm"))&"."
--
David Biddulph

"Tina" wrote in message
...
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."))))))))



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Eva Eva is offline
external usenet poster
 
Posts: 197
Default USING "IF" STATEMENTS FOR MONTHS OF YEAR(IF 1=JANUARY)

Hi
Do you have a date there? If the answer is yes I have simple formula
=TEXT(A1,"mmmm") (if in A1 is a date)
click yes if helped
--
Greatly appreciated
Eva


"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."))))))))



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 834
Default USING "IF" STATEMENTS FOR MONTHS OF YEAR(IF 1=JANUARY)

Got manged a bit, should have been

=UPPER(TEXT(VALUE("01-"&D2),"mmm"))

HTH

Bob

"Bob Phillips" wrote in message
...
Try

=UPPER(TEVALUE("01-"&D2),"mmm"))

HTH

Bob

"Tina" wrote in message
...
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."))))))))





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default USING "IF" STATEMENTS FOR MONTHS OF YEAR(IF 1=JANUARY)

One more for you to try...

=UPPER(TEXT(28*D2,"mmm"))

--
Rick (MVP - Excel)


"Tina" wrote in message
...
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."))))))))


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested IF Statements, Months of Year Wendy Excel Worksheet Functions 4 October 1st 08 09:35 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
I have to count the entry which contains "January". gaurav Excel Worksheet Functions 1 February 13th 08 01:07 PM
Working out age from "Day" "Month" "Year" timmyc Excel Worksheet Functions 4 February 5th 06 03:07 PM
How do I count like dates in a column with format "January-05"? Kentski Excel Worksheet Functions 3 January 16th 06 01:51 AM


All times are GMT +1. The time now is 04:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"