#1   Report Post  
retro
 
Posts: n/a
Default Help with SumIf

I have dates in A, numbers in B, start dates in C and a finish dates in D.
How do I get the sum of the numbers between the start and finish date? I
have tried...
=SUMIF(A2:A24,"<=C3",B2:B24)-SUMIF(A2:A24,"<D3",B2:B24) and
=SUMIF(A2:A24,"=C3=<D3",B2:B24) and other variations. Thanks for any help!


  #2   Report Post  
kk
 
Posts: n/a
Default

Hi,

Maybe you want to try

=SUMPRODUCT(--($C$2:$C$24<=A2),--($D$2:$D$24A2),$B$2:$B$24)



"retro" wrote in message
. ..

I have dates in A, numbers in B, start dates in C and a finish dates in D.
How do I get the sum of the numbers between the start and finish date? I
have tried...
=SUMIF(A2:A24,"<=C3",B2:B24)-SUMIF(A2:A24,"<D3",B2:B24) and
=SUMIF(A2:A24,"=C3=<D3",B2:B24) and other variations. Thanks for any help!



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

=SUMIF(A2:A24,"<="&C3,B2:B24)-SUMIF(A2:A24,"<"&D3,B2:B24)

retro wrote:
I have dates in A, numbers in B, start dates in C and a finish dates in D.
How do I get the sum of the numbers between the start and finish date? I
have tried...
=SUMIF(A2:A24,"<=C3",B2:B24)-SUMIF(A2:A24,"<D3",B2:B24) and
=SUMIF(A2:A24,"=C3=<D3",B2:B24) and other variations. Thanks for any help!


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

With C3 <= D3...

=SUMIF(A2:A24,"="&C3,B2:B24)-SUMIF(A2:A24,""&D3,B2:B24)

reads better.


Aladin Akyurek wrote:
=SUMIF(A2:A24,"<="&C3,B2:B24)-SUMIF(A2:A24,"<"&D3,B2:B24)

retro wrote:

I have dates in A, numbers in B, start dates in C and a finish dates
in D.
How do I get the sum of the numbers between the start and finish date? I
have tried...
=SUMIF(A2:A24,"<=C3",B2:B24)-SUMIF(A2:A24,"<D3",B2:B24) and
=SUMIF(A2:A24,"=C3=<D3",B2:B24) and other variations. Thanks for any
help!


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
SUMIF with Mutiple Ranges & Criteria PokerZan Excel Discussion (Misc queries) 5 August 4th 05 10:31 PM
SUMIF Not vanjohnson Excel Discussion (Misc queries) 1 March 4th 05 08:42 PM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM
SUM(IF( Array to avoid #NUM! values Elijah Excel Worksheet Functions 7 November 21st 04 02:17 PM


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

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

About Us

"It's about Microsoft Excel"