Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 122
Default SUMPRODUCT and Dates

Greetings,
I am using the following:
=SUMPRODUCT(($D$27:$D$500=C12)*($G$27:$G$500=$K$2 )*($G$27:$G$500<=$K$3)*($H$27:$H$500="Single")*($B $27:$B$500))
where C12 is a depot, Single refers to a size, either Single, Part or Full
and Column B is the column to sum. K2 and K3 refer to a start and finish
date. The formula appears to work well but I wondered if it was possible to
include the dates in the formula?

Glenn
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default SUMPRODUCT and Dates

Glen,

You can do it like this but it's a retograde step. Almost invariably it's
better to have lookup values in cells rather than embedded in a formula. It
limits the chance of error.

=SUMPRODUCT(($D$27:$D$500=C12)*($G$27:$G$500=DATE (2010,3,10))*($G$27:$G$500<=DATE(2010,3,10))*($H$2 7:$H$500="Single")*($B$27:$B$500))
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Glenn" wrote:

Greetings,
I am using the following:
=SUMPRODUCT(($D$27:$D$500=C12)*($G$27:$G$500=$K$2 )*($G$27:$G$500<=$K$3)*($H$27:$H$500="Single")*($B $27:$B$500))
where C12 is a depot, Single refers to a size, either Single, Part or Full
and Column B is the column to sum. K2 and K3 refer to a start and finish
date. The formula appears to work well but I wondered if it was possible to
include the dates in the formula?

Glenn

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 122
Default SUMPRODUCT and Dates

Mike,

Excellent, many thanks.

Glenn

"Mike H" wrote:

Glen,

You can do it like this but it's a retograde step. Almost invariably it's
better to have lookup values in cells rather than embedded in a formula. It
limits the chance of error.

=SUMPRODUCT(($D$27:$D$500=C12)*($G$27:$G$500=DATE (2010,3,10))*($G$27:$G$500<=DATE(2010,3,10))*($H$2 7:$H$500="Single")*($B$27:$B$500))
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Glenn" wrote:

Greetings,
I am using the following:
=SUMPRODUCT(($D$27:$D$500=C12)*($G$27:$G$500=$K$2 )*($G$27:$G$500<=$K$3)*($H$27:$H$500="Single")*($B $27:$B$500))
where C12 is a depot, Single refers to a size, either Single, Part or Full
and Column B is the column to sum. K2 and K3 refer to a start and finish
date. The formula appears to work well but I wondered if it was possible to
include the dates in the formula?

Glenn

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
SumProduct with dates Spike Excel Worksheet Functions 4 July 30th 09 12:16 AM
sumproduct with dates Jake New Users to Excel 2 March 30th 08 05:26 PM
sumproduct & dates [email protected] Excel Worksheet Functions 3 October 24th 07 03:03 AM
Sumproduct and dates Lee New Users to Excel 5 July 22nd 07 01:54 PM
sumproduct between dates Dominique Feteau Excel Worksheet Functions 8 December 5th 04 09:56 PM


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