Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumif for Date Range | Excel Discussion (Misc queries) | |||
using a date in criteria for SUMIF | Excel Discussion (Misc queries) | |||
SUMIF for date | Excel Discussion (Misc queries) | |||
SUMIF within date range as a function of today()'s date | Excel Worksheet Functions | |||
using SUMIF for Date entries? | Excel Discussion (Misc queries) |