View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
joel joel is offline
external usenet poster
 
Posts: 9,101
Default Sumif, SumProduct, CountIf Formula Help

=SUMPRODUCT(IF(AND(A1:A6=DATEVALUE("3/1/2008"),A1:A6<=DATEVALUE("3/24/2008")),1,0)*B1:B6)

To get 10 days earlier subtract 10 from the dates

=SUMPRODUCT(IF(AND(A1:A6=(DATEVALUE("3/1/2008")-10),A1:A6<=(DATEVALUE("3/24/2008")-10),1,0)*B1:B6)


"Jeremy" wrote:

I need help with two formulas. The first is I want a formula that would take
column A below and add the totals that are in column B that are between
3/1/08 and 3/24/08 in column A. The total I would like in C1. Also is
there a formula that can be written to take the date on the computer back 10
days and use column A to give a total in B that is in this date range?

Thank you for your help.


A B C
1 3/23/08 26.48
2 4/20/08 0.00
3 4/16/08 2.48
4 3/18/08 46.81
5 3/10/08 0.00
6 4/12/08 42.00