Sumif with dates for range criteria

C

Chad Linders

I would like to sum values in a column if values/dates in
a respective column are "less than" current date. When I
enter the following, I do not get an error, but I get "-"
for a sum:

=sumif(a1:a12,"<b20",b1:b12)

where cell b20 has current date.

Any help would be appreciated.

Thanks,
Chad
 
D

Debra Dalgleish

Change your formula to put the cell reference outside of the quotation
marks:

=SUMIF(A1:A12,"<"&B20,B1:B12)
 

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