#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default group of dates

Hi can anyone help?
i have a spreadsheet with a group of dates in one column and
corresponding values in the next column. some of the dates may be
duplicated if more than one entry is keyed the same day. is there a
way to make excel categorize the dates as dates of a particular week
and retrieve the corresponding information from the other column
including the duplicated dates?

Example : This is one week starting on a monday finishing on a sunday.
a b
29/12/2008 45
30/12/2008 6
31/12/2008 6
01/01/2009 12
01/01/2009 23
01/01/2009 34
02/01/2009 45
03/01/2009 56
04/01/2009 67


thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default group of dates

Enter this in C1
=WEEKNUM(A1)
and copy down

This will give you the weeknum for a given date...in a given year.
You can then use SUMIF or COUNTIF etc to do what you want.

If year is improtant then you can have
=Year(A1) to get the year part

Or
=Year(A1) & WEEKNUM(A1)
to get numbers like
20091
200852
etc.

You will need to take care of 53rd week...

"Savio" wrote:

Hi can anyone help?
i have a spreadsheet with a group of dates in one column and
corresponding values in the next column. some of the dates may be
duplicated if more than one entry is keyed the same day. is there a
way to make excel categorize the dates as dates of a particular week
and retrieve the corresponding information from the other column
including the duplicated dates?

Example : This is one week starting on a monday finishing on a sunday.
a b
29/12/2008 45
30/12/2008 6
31/12/2008 6
01/01/2009 12
01/01/2009 23
01/01/2009 34
02/01/2009 45
03/01/2009 56
04/01/2009 67


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
Group and count a list of dates Jeffshex Excel Worksheet Functions 0 August 28th 07 05:08 PM
Can't Group Dates in Pivot Table mattgoof2005 Excel Discussion (Misc queries) 13 August 6th 07 04:22 PM
Group Dates from SQL Query wjvii Excel Discussion (Misc queries) 1 March 22nd 07 11:52 PM
Why aren't dates always available to group in pivot tables? JLM Charts and Charting in Excel 4 December 31st 05 06:25 PM
PivotTables - Group Dates, excluding dates Todd1 Excel Discussion (Misc queries) 4 December 10th 05 05:06 PM


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