View Single Post
  #2  
Old June 18th, 2009, 09:27 AM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Error result for link formula

Try the below formula instead...

To get the total of materials for the month of January..with dates in ColA
and material amount in Column H..

=SUMPRODUCT(--(MONTH('Material (5-1020)'!$A$14:$A$718)=1),'Material
(5-1020)'!$H$14:$H$718)

To understanding the formula try with a different example in ColA and B....A
with dates and B with amounts....change the 1 to 2 for Februay...Or you can
even refer the month to a cell as '=MONTH(cell)'

=SUMPRODUCT(--(MONTH(A1:A10)=1),B1:B10)

If this post helps click Yes
---------------
Jacob Skaria


"tj" wrote:

Hi,

I got data as follows:
Date Material ($) Labour ($)
1/1/09 100 -
22/1/09 - 150
2/2/09 200 100


and I used formula
=SUMIF('Material (5-1020)'!$A$14:$A$718,"=1/1/ 2008",'Material
(5-1020)'!$H$14:$H$718)-SUMIF('Material (5-1020)'!$A$14:$A$718,"1/31/
2008",'Material (5-1020)'!$H$14:$H$718)

to get the result:
Jan 09 Feb 09 total
Material 100 100 250
Labour 200 100 300

The total amount is linked to other report

The problem is when I open the file together with the report file to get the
link automatically, sometimes I found the result become error like double
duplication result as follows

Jan 09 Feb 09 total
Material 100 100 200
Labour 200 200 400

However the formula does not change at all.

Could anyone help me for this problem?