HELP! with long function

G

Guest

I need to write a function with the following parameters for a work
spreadsheet.

If A:4:A29 is between the dates 07/01/2007 and 07/31/2007, add cells D4:D29
for those dates.

Can anyone help, please, please?
 
T

T. Valko

Take your pick:

=SUMIF(A4:A29,">="&DATE(2007,7,1),D4:D29)-SUMIF(A4:A29,">"&DATE(2007,7,31),D4:D29)

A1 = 7/1/2007
B1 = 7/31/2007

=SUMIF(A4:A29,">="&A1,D4:D29)-SUMIF(A4:A29,">"&B1,D4:D29)

=SUMPRODUCT(--(TEXT(A4:A29,"m/yyyy")="7/2007"),D4:D29)
 

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