#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 361
Default Summing By Week

I have daily data like so:

Date Volume
20070103 25
20070103 25
20070103 25
20070103 25
20070103 11
20070103 11
20070104 11
20070104 11
20070103 10
20070203 10
20070203 10

I am trying to find a way to sum the volume by week. Is this possible ?

Thank you in advance.

carl



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Summing By Week

=SUMPRODUCT(--(A2:A20=--"2007-01-03"),--(A2:A20<--"200-01-10"),B2:B20)

You could put the dates inb cells and test against the cells

=SUMPRODUCT(--(A2:A20=M1),--(A2:A20<M1+7),B2:B20)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"carl" wrote in message
...
I have daily data like so:

Date Volume
20070103 25
20070103 25
20070103 25
20070103 25
20070103 11
20070103 11
20070104 11
20070104 11
20070103 10
20070203 10
20070203 10

I am trying to find a way to sum the volume by week. Is this possible ?

Thank you in advance.

carl





  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 361
Default Summing By Week

Hi Bob. Thanks for your help. I should have been more specific. My data
covers year-to-date. So I have Jan, Feb,Mar,April, May,June, part of July
daily data.

I am trying to find a slick way to sum the Volume by week.

Any thoughts ?

"Bob Phillips" wrote:

=SUMPRODUCT(--(A2:A20=--"2007-01-03"),--(A2:A20<--"200-01-10"),B2:B20)

You could put the dates inb cells and test against the cells

=SUMPRODUCT(--(A2:A20=M1),--(A2:A20<M1+7),B2:B20)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"carl" wrote in message
...
I have daily data like so:

Date Volume
20070103 25
20070103 25
20070103 25
20070103 25
20070103 11
20070103 11
20070104 11
20070104 11
20070103 10
20070203 10
20070203 10

I am trying to find a way to sum the volume by week. Is this possible ?

Thank you in advance.

carl






  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 527
Default Summing By Week

I'm not sure about your dates, is it a custom date format in which case you
can use a helper column to find the week number. e.g =WEEKNUM(A2,1) gives you
a week starting on Sunday.

if these dates are text then to find the weeknumber use
=WEEKNUM(DATE(LEFT(A2,4),MID(A2,5,2),RIGHT(A2)),1) and copy down.

To have a column of weekly totals fill in the series from 1 to 52 in say,
column C and use a simple SUMIF function e.g
=SUMIF($C$2:$C$500,D2,$B$2:$B$500)

Regards
Peter
"carl" wrote:

Hi Bob. Thanks for your help. I should have been more specific. My data
covers year-to-date. So I have Jan, Feb,Mar,April, May,June, part of July
daily data.

I am trying to find a slick way to sum the Volume by week.

Any thoughts ?

"Bob Phillips" wrote:

=SUMPRODUCT(--(A2:A20=--"2007-01-03"),--(A2:A20<--"200-01-10"),B2:B20)

You could put the dates inb cells and test against the cells

=SUMPRODUCT(--(A2:A20=M1),--(A2:A20<M1+7),B2:B20)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"carl" wrote in message
...
I have daily data like so:

Date Volume
20070103 25
20070103 25
20070103 25
20070103 25
20070103 11
20070103 11
20070104 11
20070104 11
20070103 10
20070203 10
20070203 10

I am trying to find a way to sum the volume by week. Is this possible ?

Thank you in advance.

carl






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 sales by week and week number Wanna Learn Excel Discussion (Misc queries) 7 November 7th 06 11:44 AM
Tie a Calendar week to a Scoped Projected Week [email protected] Excel Worksheet Functions 3 October 31st 06 01:34 PM
update week to week in excel. Rudy Excel Worksheet Functions 3 September 4th 06 03:20 PM
How do I set up a week by week skill training schedule in excel? davidwatts Excel Discussion (Misc queries) 0 June 16th 05 11:32 PM
I need week number in excell from a date, first week must be mini. jPeich Excel Discussion (Misc queries) 4 January 5th 05 01:21 AM


All times are GMT +1. The time now is 09:23 AM.

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

About Us

"It's about Microsoft Excel"