Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
=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
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to use SUMIF to return sums between two values located in cells | Excel Worksheet Functions | |||
SUMIF with Mutiple Ranges & Criteria | Excel Discussion (Misc queries) | |||
SUMIF Not | Excel Discussion (Misc queries) | |||
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function | Excel Worksheet Functions | |||
SUM(IF( Array to avoid #NUM! values | Excel Worksheet Functions |