Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
qwopzxnm
 
Posts: n/a
Default Sum of data between two dates - tried SUMIF and it returned "0"


I am trying to sum the data between two dates but when I use the SUMIF
function I am getting a result of 0.

I tried using SUMIF(A:A,"<=D2",B:B) and then subtracting
SUMIF(A:A,"<D1",B:B) but both results are giving me a 0 amount.

How could I get the sum of data in B between the dates I calculate in
cells D1 and D2?

D1 = 10/1/04
D2 = 10/5/04


Row A B
1 9/27/2004 10
2 9/28/2004 15
3 9/29/2004 20
4 9/30/2004 25
5 10/1/2004 30
6 10/2/2004 35
7 10/3/2004 40
8 10/4/2004 45
9 10/5/2004 50
10 10/6/2004 55
11 10/7/2004 60
12 10/8/2004 65
13 10/9/2004 70
14 10/10/2004 75


--
qwopzxnm
------------------------------------------------------------------------
qwopzxnm's Profile: http://www.excelforum.com/member.php...o&userid=27557
View this thread: http://www.excelforum.com/showthread...hreadid=478902

  #2   Report Post  
bill k
 
Posts: n/a
Default Sum of data between two dates - tried SUMIF and it returned "0"


have a go at using the sumproduct function

=SUMPRODUCT(--(A1:A14<=D2),--(A1:A14=D1),B1:B14)


--
bill k


------------------------------------------------------------------------
bill k's Profile: http://www.excelforum.com/member.php...nfo&userid=821
View this thread: http://www.excelforum.com/showthread...hreadid=478902

  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default Sum of data between two dates - tried SUMIF and it returned "0"

Try

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

do the same for the other


--

Regards,

Peo Sjoblom

"qwopzxnm" wrote in
message ...

I am trying to sum the data between two dates but when I use the SUMIF
function I am getting a result of 0.

I tried using SUMIF(A:A,"<=D2",B:B) and then subtracting
SUMIF(A:A,"<D1",B:B) but both results are giving me a 0 amount.

How could I get the sum of data in B between the dates I calculate in
cells D1 and D2?

D1 = 10/1/04
D2 = 10/5/04


Row A B
1 9/27/2004 10
2 9/28/2004 15
3 9/29/2004 20
4 9/30/2004 25
5 10/1/2004 30
6 10/2/2004 35
7 10/3/2004 40
8 10/4/2004 45
9 10/5/2004 50
10 10/6/2004 55
11 10/7/2004 60
12 10/8/2004 65
13 10/9/2004 70
14 10/10/2004 75


--
qwopzxnm
------------------------------------------------------------------------
qwopzxnm's Profile:

http://www.excelforum.com/member.php...o&userid=27557
View this thread: http://www.excelforum.com/showthread...hreadid=478902



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 Dates / Months ? ZMAN Excel Worksheet Functions 5 August 26th 05 02:07 AM
Conditional Sum on VLOOKUP Returned Data Liz Excel Worksheet Functions 3 August 9th 05 07:33 PM
SUMIF and MULTIPLE DATA Brian Excel Discussion (Misc queries) 2 March 23rd 05 05:20 AM
SUMIF between dates Bruce Excel Worksheet Functions 3 November 25th 04 05:25 PM
sumif to add data in multiple sheets Sues Excel Worksheet Functions 4 November 18th 04 06:54 AM


All times are GMT +1. The time now is 07:03 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"