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

I have a list of data that I download every week. Product code in col A,
product starting date in col B (this is not a calendar date, it's a week
number: term1 week 1, t1w2, etc) So col B actually will have the terms from 1
to 13. Col C will have the weeks (1-4). Col D will have the sales values. I
need to sum the sales for 13 terms or 52 weeks. Each product has a different
starting date. Once the sales for the 52 weeks get summed, start summing the
next 52 weeks/13 terms.
How can I do that dynamically?

Thanks.
--
when u change the way u look @ things, the things u look at change.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Dynamic sum

Make use of column E in your data sheet by using this formula in E2:

="t"&B2&"w"&C2

and copy this down to cover your data. Then in another sheet you could
have a table made up like this:

t1w1
t1w2
t1w3
t1w4
t2w1

and so on. Assume this is in column A, then in B1 of this sheet you
can have a formula like:

=SUMIF(Sheet1!E:E,A1,Sheet1!D:D)

and copy this down the 52 rows.

Hope this helps.

Pete

On Dec 6, 11:26 pm, sahafi wrote:
I have a list of data that I download every week. Product code in col A,
product starting date in col B (this is not a calendar date, it's a week
number: term1 week 1, t1w2, etc) So col B actually will have the terms from 1
to 13. Col C will have the weeks (1-4). Col D will have the sales values. I
need to sum the sales for 13 terms or 52 weeks. Each product has a different
starting date. Once the sales for the 52 weeks get summed, start summing the
next 52 weeks/13 terms.
How can I do that dynamically?

Thanks.
--
when u change the way u look @ things, the things u look at change.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 108
Default Dynamic sum

Thanks, But how would it know where to assign each value for each product
code? The formula as is will return zero.

Thanks.
--
when u change the way u look @ things, the things u look at change.


"Pete_UK" wrote:

Make use of column E in your data sheet by using this formula in E2:

="t"&B2&"w"&C2

and copy this down to cover your data. Then in another sheet you could
have a table made up like this:

t1w1
t1w2
t1w3
t1w4
t2w1

and so on. Assume this is in column A, then in B1 of this sheet you
can have a formula like:

=SUMIF(Sheet1!E:E,A1,Sheet1!D:D)

and copy this down the 52 rows.

Hope this helps.

Pete

On Dec 6, 11:26 pm, sahafi wrote:
I have a list of data that I download every week. Product code in col A,
product starting date in col B (this is not a calendar date, it's a week
number: term1 week 1, t1w2, etc) So col B actually will have the terms from 1
to 13. Col C will have the weeks (1-4). Col D will have the sales values. I
need to sum the sales for 13 terms or 52 weeks. Each product has a different
starting date. Once the sales for the 52 weeks get summed, start summing the
next 52 weeks/13 terms.
How can I do that dynamically?

Thanks.
--
when u change the way u look @ things, the things u look at change.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Dynamic sum

You said in your first post that you needed to sum the sales for 52
weeks, but now you seem to want a breakdown by product code. Can you
give an example to show what you want to end up with?

Pete

On Dec 7, 5:05 pm, sahafi wrote:
Thanks, But how would it know where to assign each value for each product
code? The formula as is will return zero.

Thanks.
--
when u change the way u look @ things, the things u look at change.



"Pete_UK" wrote:
Make use of column E in your data sheet by using this formula in E2:


="t"&B2&"w"&C2


and copy this down to cover your data. Then in another sheet you could
have a table made up like this:


t1w1
t1w2
t1w3
t1w4
t2w1


and so on. Assume this is in column A, then in B1 of this sheet you
can have a formula like:


=SUMIF(Sheet1!E:E,A1,Sheet1!D:D)


and copy this down the 52 rows.


Hope this helps.


Pete


On Dec 6, 11:26 pm, sahafi wrote:
I have a list of data that I download every week. Product code in col A,
product starting date in col B (this is not a calendar date, it's a week
number: term1 week 1, t1w2, etc) So col B actually will have the terms from 1
to 13. Col C will have the weeks (1-4). Col D will have the sales values. I
need to sum the sales for 13 terms or 52 weeks. Each product has a different
starting date. Once the sales for the 52 weeks get summed, start summing the
next 52 weeks/13 terms.
How can I do that dynamically?


Thanks.
--
when u change the way u look @ things, the things u look at change.- Hide quoted text -


- Show quoted text -


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
Dynamic Formula with Dynamic Address dmz_asdf Excel Worksheet Functions 7 December 15th 06 07:13 PM
Make dynamic charts more dynamic Milo Charts and Charting in Excel 1 April 12th 06 09:01 AM
Help with copying dynamic column selected based on remote cell value and dynamic formula fill ers Charts and Charting in Excel 0 March 1st 06 01:05 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Dynamic Formulas with Dynamic Ranges Ralph Howarth Excel Worksheet Functions 5 January 21st 05 08:44 AM


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

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"