Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Using CASE Statement to Derive Months from Numeric Dates

Hello,
I have a list of hire dates that I need to group by month. I've included in
the macro to convert the dates from text column using the "\" as a
delimiter (ex: 1\1\2007 would be split into three columns...the month column
now houses a 1, the day column houses a 1, and the year column houses a
2007). I then want a case statement in the macro that will change all the
months in the month column that begin with a 1 to January, a 2 to February,
and so on. The month column is currently my column D, and I plan on deleting
the day and year columns as they are not needed...I just need hire dates
grouped by the month that the hire occurred in.
--
Thank you! - Jennifer
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Using CASE Statement to Derive Months from Numeric Dates

If your date is in A1, this formula returns the month:

=TEXT(A1,"mmmm")

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Jennifer Cali" wrote in message
...
Hello,
I have a list of hire dates that I need to group by month. I've included
in
the macro to convert the dates from text column using the "\" as a
delimiter (ex: 1\1\2007 would be split into three columns...the month
column
now houses a 1, the day column houses a 1, and the year column houses a
2007). I then want a case statement in the macro that will change all the
months in the month column that begin with a 1 to January, a 2 to
February,
and so on. The month column is currently my column D, and I plan on
deleting
the day and year columns as they are not needed...I just need hire dates
grouped by the month that the hire occurred in.
--
Thank you! - Jennifer



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Using CASE Statement to Derive Months from Numeric Dates

THIS IS PERFECT!
--
Thank you! - Jennifer


"Jon Peltier" wrote:

If your date is in A1, this formula returns the month:

=TEXT(A1,"mmmm")

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Jennifer Cali" wrote in message
...
Hello,
I have a list of hire dates that I need to group by month. I've included
in
the macro to convert the dates from text column using the "\" as a
delimiter (ex: 1\1\2007 would be split into three columns...the month
column
now houses a 1, the day column houses a 1, and the year column houses a
2007). I then want a case statement in the macro that will change all the
months in the month column that begin with a 1 to January, a 2 to
February,
and so on. The month column is currently my column D, and I plan on
deleting
the day and year columns as they are not needed...I just need hire dates
grouped by the month that the hire occurred in.
--
Thank you! - Jennifer




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
If statement for alpha numeric combo AND numeric only Jdude Excel Discussion (Misc queries) 4 July 13th 09 06:14 AM
Split the numbers in a alpha numeric case Jp Excel Discussion (Misc queries) 5 April 7th 06 09:29 PM
Adding months to dates should account for 28-30-31 day months Graham Excel Worksheet Functions 3 February 1st 06 12:06 PM
Use a calc to figure sum in months using date fields but numeric r susiespassion Excel Worksheet Functions 8 February 6th 05 11:32 PM
Dates to months and calculating values for their months jigsaw2 Excel Programming 1 September 5th 03 01:35 PM


All times are GMT +1. The time now is 02:13 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"