Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bruce
 
Posts: n/a
Default SUMIF between dates

I have a worksheet with a column of dates (A) and a column of values (B).

How can I SUMIF between a date range.

Eg Sumif ( A 1/1/04 < 30/06/04, B)

In other words what is the total of values between this date range?

Bruce
  #2   Report Post  
Dave R.
 
Posts: n/a
Default

Sumproduct would work;

=SUMPRODUCT((A1:A6DATEVALUE("1/1/2004"))*(A1:A6<DATEVALUE("4/1/2004")),B1:B
6)

You could also use one sumif counting "greater than" first date and then
subtract a sumif counting "greater than" second date if you want to, e.g.

=SUMIF(A1:A6,""&DATEVALUE("1/1/2004"),B1:B6)-SUMIF(A1:A6,""&DATEVALUE("4/1
5/2004"),B1:B6)



"Bruce" wrote in message
...
I have a worksheet with a column of dates (A) and a column of values (B).

How can I SUMIF between a date range.

Eg Sumif ( A 1/1/04 < 30/06/04, B)

In other words what is the total of values between this date range?

Bruce



  #3   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi Dave
better to use DATE or a date format such as YYYY-MM-DD as other wise
your formula will not work for all country settings

--
Regards
Frank Kabel
Frankfurt, Germany


Dave R. wrote:
Sumproduct would work;


=SUMPRODUCT((A1:A6DATEVALUE("1/1/2004"))*(A1:A6<DATEVALUE("4/1/2004"))
,B1:B
6)

You could also use one sumif counting "greater than" first date and
then subtract a sumif counting "greater than" second date if you want
to, e.g.


=SUMIF(A1:A6,""&DATEVALUE("1/1/2004"),B1:B6)-SUMIF(A1:A6,""&DATEVALUE
("4/1
5/2004"),B1:B6)



"Bruce" wrote in message
...
I have a worksheet with a column of dates (A) and a column of values
(B).

How can I SUMIF between a date range.

Eg Sumif ( A 1/1/04 < 30/06/04, B)

In other words what is the total of values between this date range?

Bruce


  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default


Better off with SumIf...

E2: 1/1/04
F2: 30/06/04

=SUMIF(A:A,"="&E2,B:B)-SUMIF(A:A,""&F2,B:B)


Bruce Wrote:
I have a worksheet with a column of dates (A) and a column of values
(B).

How can I SUMIF between a date range.

Eg Sumif ( A 1/1/04 < 30/06/04, B)

In other words what is the total of values between this date range?

Bruce



--
Aladin Akyurek
------------------------------------------------------------------------
Aladin Akyurek's Profile: http://www.excelforum.com/member.php...fo&userid=4165
View this thread: http://www.excelforum.com/showthread...hreadid=320327

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
How to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
Formating Dates for production schedule dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 08:43 PM
due dates Niki New Users to Excel 4 January 10th 05 04:11 PM
SUMIF USING DATES RayG Excel Discussion (Misc queries) 4 January 6th 05 11:31 PM
I get wrong dates when i paste from a different sheet into a new s mmollat Excel Discussion (Misc queries) 2 January 6th 05 07:35 PM


All times are GMT +1. The time now is 05:39 AM.

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"