ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sumif < date (https://www.excelbanter.com/excel-worksheet-functions/194659-sumif-date.html)

David

sumif < date
 
Hi Group,

Having a little trouble doing a SumIf, have a list of dates and a column I
am trying to sum if the date is less than a certain date. The dates go back
to 1/1/1999 and I want to sum value that are less than 12/31/1999, as an
example.

Thanks,
David

daddylonglegs

sumif < date
 
Hello David,

You can do that like this

=SUMIF(A:A,"<"&DATE(1999,12,31),B:B)

where dates are in column A and amounts to sum in column B

or you can put your date in C1 and use

=SUMIF(A:A,"<"&C1,B:B)



"David" wrote:

Hi Group,

Having a little trouble doing a SumIf, have a list of dates and a column I
am trying to sum if the date is less than a certain date. The dates go back
to 1/1/1999 and I want to sum value that are less than 12/31/1999, as an
example.

Thanks,
David


Dave Peterson

sumif < date
 
=sumif(a1:a10,"<"&date(1999,12,31),b1:b10)

you sure you didn't mean less than or equal to 12/31/1999????



David wrote:

Hi Group,

Having a little trouble doing a SumIf, have a list of dates and a column I
am trying to sum if the date is less than a certain date. The dates go back
to 1/1/1999 and I want to sum value that are less than 12/31/1999, as an
example.

Thanks,
David


--

Dave Peterson

T. Valko

sumif < date
 
Try this:

=SUMIF(A1:A100,"<"&DATE(1999,12,31),B1:B100)

Or, use a cell to hold the date criteria:

D1 = 12/31/1999

=SUMIF(A1:A100,"<"&D1,B1:B100)

--
Biff
Microsoft Excel MVP


"David" wrote in message
...
Hi Group,

Having a little trouble doing a SumIf, have a list of dates and a column I
am trying to sum if the date is less than a certain date. The dates go
back
to 1/1/1999 and I want to sum value that are less than 12/31/1999, as an
example.

Thanks,
David




David

sumif < date
 
Thank you. This works great. I really did have a hard time, I knew that the
"" had to go in there somewhere, but just had the hardest time.

David

"daddylonglegs" wrote:

Hello David,

You can do that like this

=SUMIF(A:A,"<"&DATE(1999,12,31),B:B)

where dates are in column A and amounts to sum in column B

or you can put your date in C1 and use

=SUMIF(A:A,"<"&C1,B:B)



"David" wrote:

Hi Group,

Having a little trouble doing a SumIf, have a list of dates and a column I
am trying to sum if the date is less than a certain date. The dates go back
to 1/1/1999 and I want to sum value that are less than 12/31/1999, as an
example.

Thanks,
David


Rick Rothstein \(MVP - VB\)[_888_]

sumif < date
 
Here is another way to write it...

=SUMIF(A1:A100,"<=1999-12-31",B1:B100)

where the order of the date parts must be as shown (and I changed your < to
<= as I'm pretty sure you want to include each day in 1999 in your
summation). Of course, you could also write it this way as well...

=SUMIF(A1:A100,"<2000-1-1",B1:B100)

saving yourself from having to type 3 extra characters.<g

Rick


"David" wrote in message
...
Hi Group,

Having a little trouble doing a SumIf, have a list of dates and a column I
am trying to sum if the date is less than a certain date. The dates go
back
to 1/1/1999 and I want to sum value that are less than 12/31/1999, as an
example.

Thanks,
David




All times are GMT +1. The time now is 10:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com