Query Formula

D

DanBanez

Can somebody tell me the correct formula to query entries,
let say, payments made between 1 Jan 04 - 31 Jan 04.
 
P

Peter atherton

-----Original Message-----
Can somebody tell me the correct formula to query entries,
let say, payments made between 1 Jan 04 - 31 Jan 04.
.
Dan

Assuming dates are in A4 to A13 and Payments in B4:b13

=SUMIF(A4:A13,">=1/2/04",B4:B13)-SUMIF
(A4:A13,">5/2/04",B4:B13)

gets the sum for 1st to the 5th of Feb

Regards
Peter
 
F

Frank Kabel

Can somebody tell me the correct formula to query entries,
let say, payments made between 1 Jan 04 - 31 Jan 04.

Hi
one way (assumption your payments are in column A):
=SUMPRODUCT((A1:A1000>=DATE(2004,1,1))*(A1:A1000<=DATE(2004,1,31))
to just count the payment occurences in January
=SUMPRODUCT((A1:A1000>=DATE(2004,1,1))*(A1:A1000<=DATE(2004,1,31),A1:A1
000)
to sum the payments in January

Frank
 

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

Top