I need a formula to sum column b if column a is between two dates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an excel spreadsheet with employees time off. I need a formula that
will add column b if column a is betwee two dates. For example: if column a
is between 9/22/04 and 9/21/05 then add column b. I have tried all different
formluas but can't get this to work.
 
I have an excel spreadsheet with employees time off. I need a formula that
will add column b if column a is betwee two dates. For example: if column a
is between 9/22/04 and 9/21/05 then add column b. I have tried all different
formluas but can't get this to work.

=SUMIF(A:A,">="&DATE(2004,9,22),B:B) - SUMIF(A:A,">"&DATE(2004,9,21),B:B)

You may find it more convenient to but the Dates into cells, in which case
merely substitute the cell reference for the DATE function in the above.


--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top