#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default 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
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default 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



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default 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



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumif for Date Range Raza Excel Discussion (Misc queries) 3 April 11th 07 04:32 PM
using a date in criteria for SUMIF Will Excel Discussion (Misc queries) 1 April 9th 07 05:58 PM
SUMIF for date Lamb Chop Excel Discussion (Misc queries) 2 October 11th 06 02:55 PM
SUMIF within date range as a function of today()'s date irvine79 Excel Worksheet Functions 8 August 6th 06 05:55 PM
using SUMIF for Date entries? businesslady24 Excel Discussion (Misc queries) 11 June 22nd 06 05:14 PM


All times are GMT +1. The time now is 03:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"