#1   Report Post  
svvm
 
Posts: n/a
Default SUMPRODUCT help


Hi,
I have three columns. One containing a "value" taken from a list,
another an amount and the third column contains a date.

What I need to do is for a particular value, find out the sum of all
the amounts for a particular month.

This is the formula I have written but the sum is not being calculated
for the particular date range.

Column D Column E Column F
15 March, 2005 23344 UK Perdiem
17 March, 2005 739874 UK Perdiem

=SUMPRODUCT((F5:F150)*(I5:I150="UK Perdiem")*(D5:D150= "15 March,
2005" & D5:D150<= "31 March, 2005"))

The value shows 0 but if I remove the date calculation it works fine.

Can anybody please help me with the formula?

Thanks in advance


--
svvm
------------------------------------------------------------------------
svvm's Profile: http://www.excelforum.com/member.php...o&userid=21501
View this thread: http://www.excelforum.com/showthread...hreadid=380469

  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

svvm wrote:
Hi,
I have three columns. One containing a "value" taken from a list,
another an amount and the third column contains a date.

What I need to do is for a particular value, find out the sum of all
the amounts for a particular month.

This is the formula I have written but the sum is not being calculated
for the particular date range.

Column D Column E Column F
15 March, 2005 23344 UK Perdiem
17 March, 2005 739874 UK Perdiem

=SUMPRODUCT((F5:F150)*(I5:I150="UK Perdiem")*(D5:D150= "15 March,
2005" & D5:D150<= "31 March, 2005"))

The value shows 0 but if I remove the date calculation it works fine.

Can anybody please help me with the formula?

Thanks in advance


=SUMPRODUCT($F$5:$F$150,($I$5:$I$150="UK Perdiem")+0,($D$5:$D$150=
"15-Mar-05"+0)+0, ($D$5:$D$150<= "31-Mar-05"+0)+0)

--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
  #3   Report Post  
bj
 
Posts: n/a
Default

The problem is probably that your date value is not being recognized.
try
=SUMPRODUCT((F5:F150)*(I5:I150="UK Perdiem")*(D5:D150= datevalue("15 March,
2005") & D5:D150<= datevalue(("31 March, 2005"))
Note with my verison of Excel I had to use "March 15, 2005" You may have to
paly a bit with format.

"svvm" wrote:


Hi,
I have three columns. One containing a "value" taken from a list,
another an amount and the third column contains a date.

What I need to do is for a particular value, find out the sum of all
the amounts for a particular month.

This is the formula I have written but the sum is not being calculated
for the particular date range.

Column D Column E Column F
15 March, 2005 23344 UK Perdiem
17 March, 2005 739874 UK Perdiem

=SUMPRODUCT((F5:F150)*(I5:I150="UK Perdiem")*(D5:D150= "15 March,
2005" & D5:D150<= "31 March, 2005"))

The value shows 0 but if I remove the date calculation it works fine.

Can anybody please help me with the formula?

Thanks in advance


--
svvm
------------------------------------------------------------------------
svvm's Profile: http://www.excelforum.com/member.php...o&userid=21501
View this thread: http://www.excelforum.com/showthread...hreadid=380469


  #4   Report Post  
Alex Delamain
 
Posts: n/a
Default


One simple way round the problem of date recognition is to put your
start and end dates in cells and reference the cells in the formula.
This has the added benefit of making it very quick and easy to
calculate over any chosen date period.


--
Alex Delamain
------------------------------------------------------------------------
Alex Delamain's Profile: http://www.excelforum.com/member.php...o&userid=11273
View this thread: http://www.excelforum.com/showthread...hreadid=380469

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 Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


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