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

I have a column of model numbers in which I need to have a cell with the
totals of all the different models being built within a certain date range.
Date model# model # 11 12 13
01-may 12 totals 2 3 2
(btwn 01may-09may)
02-may 11
03-may 11
04-may 13

07-may 12
08-may 12
09-may 13
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Formula

Assuming Date/Model # are in columns A &B of Sheet1 and the output is in
Sheet2 with model #s starting in B1, then in B2:

=SUMPRODUCT(--(Sheet1!$A$2:$A$100=DATE(2007,5,1)),--(Sheet1!$A$2:$A$100<=DATE(2007,5,9)),--(Sheet1!$B$2:$B$100=B1))

Copy across for all models

You can put your selection dates in two cells (say X1 & X2) and compare
against the cells:

=SUMPRODUCT(--(Sheet1!$A$2:$A$100=X1),--(Sheet1!$A$2:$A$100<=X2),--(Sheet1!$B$2:$B$100=B1))
HTH

"Rspiva" wrote:

I have a column of model numbers in which I need to have a cell with the
totals of all the different models being built within a certain date range.
Date model# model # 11 12 13
01-may 12 totals 2 3 2
(btwn 01may-09may)
02-may 11
03-may 11
04-may 13

07-may 12
08-may 12
09-may 13

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Formula

Thank you

"Toppers" wrote:

Assuming Date/Model # are in columns A &B of Sheet1 and the output is in
Sheet2 with model #s starting in B1, then in B2:

=SUMPRODUCT(--(Sheet1!$A$2:$A$100=DATE(2007,5,1)),--(Sheet1!$A$2:$A$100<=DATE(2007,5,9)),--(Sheet1!$B$2:$B$100=B1))

Copy across for all models

You can put your selection dates in two cells (say X1 & X2) and compare
against the cells:

=SUMPRODUCT(--(Sheet1!$A$2:$A$100=X1),--(Sheet1!$A$2:$A$100<=X2),--(Sheet1!$B$2:$B$100=B1))
HTH

"Rspiva" wrote:

I have a column of model numbers in which I need to have a cell with the
totals of all the different models being built within a certain date range.
Date model# model # 11 12 13
01-may 12 totals 2 3 2
(btwn 01may-09may)
02-may 11
03-may 11
04-may 13

07-may 12
08-may 12
09-may 13

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



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