#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default database

I have a worksheet with two columns. The first is a date column ranging
between 1st jan 2007 to 31st Dec 2007. The other is a list of functions or
events (i.e BBQ, Parents meeting,Teachers lunch and the like).
What i need is to have each month listed seperately in different columns on
the same or another sheet. Any suggestions please!!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default database

Say the data starts in row 2.

In C2 enter:
=MONTH(A2) and copy down
You will see a column of month numbers

Click on C1 and pull-down:

Data Filter AutoFilter

click on the pull-down and pick a month. Copy the resulting rows and paste
them on another sheet.


For example if the data was:

date text
7/15/2007 words
5/1/2007 words
8/29/2007 words
2/15/2007 words
2/22/2007 words
6/15/2007 words
6/22/2007 words
1/1/2007 words
8/14/2007 words
9/5/2007 words
4/23/2007 words
1/23/2007 words
5/16/2007 words
7/22/2007 words
4/16/2007 words
4/1/2007 words
7/7/2007 words
8/6/2007 words
6/30/2007 words

after inserting the MONTH function:

date text key
7/15/2007 words 7
5/1/2007 words 5
8/29/2007 words 8
2/15/2007 words 2
2/22/2007 words 2
6/15/2007 words 6
6/22/2007 words 6
1/1/2007 words 1
8/14/2007 words 8
9/5/2007 words 9
4/23/2007 words 4
1/23/2007 words 1
5/16/2007 words 5
7/22/2007 words 7
4/16/2007 words 4
4/1/2007 words 4
7/7/2007 words 7
8/6/2007 words 8
6/30/2007 words 6


After AutoFiltering on month 6:

date text key
6/15/2007 words 6
6/22/2007 words 6
6/30/2007 words 6

--
Gary''s Student - gsnu200739


"zacted" wrote:

I have a worksheet with two columns. The first is a date column ranging
between 1st jan 2007 to 31st Dec 2007. The other is a list of functions or
events (i.e BBQ, Parents meeting,Teachers lunch and the like).
What i need is to have each month listed seperately in different columns on
the same or another sheet. Any suggestions please!!!

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
database query not showing foxpro database How I import data mangat New Users to Excel 1 June 24th 07 03:31 PM
Help with a database.. got2stamp Excel Worksheet Functions 1 April 22nd 07 03:04 AM
How to make reference to database and if true copy from database? V!p3r Excel Discussion (Misc queries) 4 February 5th 07 02:19 PM
Moved database, how do I change link to the database in excel Toastrack Excel Discussion (Misc queries) 0 October 20th 06 09:36 AM
Transforming messy database into clean database SteveC Excel Discussion (Misc queries) 4 January 24th 06 11:34 PM


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