View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default can I do this in excel

Yes it can, Try:-

=SUMPRODUCT(--(A1:A5=DATEVALUE("20/04/07")),--(A1:A5<=DATEVALUE("05/06/07")),D1:D5)

Mike

"bee" wrote:

I have the following columns in a worksheet
A B C D E
DATE ITEM COST TAX TOTAL COST
28/04/07 LAYING PIPE $50.00 $5.00 $55.00
THROUGH TO
6/5/07 LAYING PIPE $50.00 $5.00 $55.00

can excel calculate the total cost for any period for example say from
28/04/07 to 06/05/07. I have treid sumif and vlookup but cannot get a formula
to calculate between the dates specified.
Is there a formula that I could use to calculate from and to or between dates.
thank you for your advice.