View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.datamap,microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
Don Guillett[_4_] Don Guillett[_4_] is offline
external usenet poster
 
Posts: 2,337
Default Help in conditional SUM

try this for January
=sumproduct((month(sheet2!range("a2:a200")=1)*shee t2!range("b2:b200)
or if formula in row 1. Just copy down
=sumproduct((month(sheet2!range("a2:a200")=row())* sheet2!range("b2:b200)
or modify row() to row(a1) if starting formula is on another row
--
Don Guillett
SalesAid Software

"Sunny" wrote in message
...
Hi all,

I have two sheets in my spreadsheet. On first sheet I want to display
summarray of second sheet.

Here is the example:

Sheet1:

Month Sales
January 425.00
February 300.00
March 0.00
April 400.00
...
...
...
Total

Sheet2
SaleDate Amount
1/3/03 100.00
1/5/03 200.00
1/10/03 125.00
2/3/03 25.00
2/10/03 275.00
4/5/03 250.00
4/15/03 150.00
...
...
...

Can anyone give me idea?

Thanks.