Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF to group months

Hello,

I'm looking for an IF statement that will organize my data much more
effectively. I have several hundred dates, and want to group them by
month, but i cannot seem to do so. For example:

5/22/2009 - May 2009
6/2/2009 - June 2009
5/5/2009 - May 2009
2/5/2009 - Feb 2009


I have tried =if(A15/1/09and J145/1/2009,May 2009, if(J14<6/31/2009
and J146/1/2009, June 2009, ...) but it doesn't work i can only get
the first set of data to work to output May, i can't get anything else
to come out...any thoughts?? Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default IF to group months

I don't believe for a minute that you used the formula
=if(A15/1/09and J145/1/2009,May 2009, if(J14<6/31/2009 and J146/1/2009,
June 2009, ...)
as it is choc-a-bloc with syntax errors.

Unless you have a particular desire to use an IF formula, why not
=TEXT(A2,"mmmm yyyy") ?
--
David Biddulph

"John McDonnell" wrote in message
...
Hello,

I'm looking for an IF statement that will organize my data much more
effectively. I have several hundred dates, and want to group them by
month, but i cannot seem to do so. For example:

5/22/2009 - May 2009
6/2/2009 - June 2009
5/5/2009 - May 2009
2/5/2009 - Feb 2009


I have tried =if(A15/1/09and J145/1/2009,May 2009, if(J14<6/31/2009
and J146/1/2009, June 2009, ...) but it doesn't work i can only get
the first set of data to work to output May, i can't get anything else
to come out...any thoughts?? Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default IF to group months

=TEXT(J14, "mmm-yyyy")
or
custom format for cell J14 "mmm-yyyy"


On Oct 26, 5:21*pm, John McDonnell wrote:
Hello,

I'm looking for an IF statement that will organize my data much more
effectively. *I have several hundred dates, and want to group them by
month, but i cannot seem to do so. *For example:

5/22/2009 - May 2009
6/2/2009 - June 2009
5/5/2009 - May 2009
2/5/2009 - Feb 2009

I have tried =if(A15/1/09and J145/1/2009,May 2009, if(J14<6/31/2009
and J146/1/2009, June 2009, ...) but it doesn't work i can only get
the first set of data to work to output May, i can't get anything else
to come out...any thoughts?? Thanks.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default IF to group months

Hi,

You may create pivot table. Drag the dates to the row area. While on any
cell in the date column, click on the pivot table button on the pivot table
toolbar and then select Group and Outline Group. Select months there and
then OK

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"John McDonnell" wrote in message
...
Hello,

I'm looking for an IF statement that will organize my data much more
effectively. I have several hundred dates, and want to group them by
month, but i cannot seem to do so. For example:

5/22/2009 - May 2009
6/2/2009 - June 2009
5/5/2009 - May 2009
2/5/2009 - Feb 2009


I have tried =if(A15/1/09and J145/1/2009,May 2009, if(J14<6/31/2009
and J146/1/2009, June 2009, ...) but it doesn't work i can only get
the first set of data to work to output May, i can't get anything else
to come out...any thoughts?? Thanks.


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
Chart displaying weekly data group in months without weekly labels smcgee01 Charts and Charting in Excel 7 September 11th 08 10:53 PM
3 months prior and 3 months post a date renee Excel Worksheet Functions 2 May 2nd 08 05:46 PM
Adding months to dates should account for 28-30-31 day months Graham Excel Worksheet Functions 3 February 1st 06 12:06 PM
Group data by weeks not months Daniel Excel Discussion (Misc queries) 1 February 18th 05 11:07 AM
How do i change 15 months to read 1 year and 3 months? Marty Excel Discussion (Misc queries) 1 February 17th 05 11:21 PM


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