Formula to sum only if date is greater than required date

asad

Well-known Member
Joined
Sep 9, 2008
Messages
1,434
Hello All,

The title is not explaining what I am looking for exactly. Okay, here it is. I have the following two dates with next two columns having the numbers to be summed.
1/07/2020​
10​
2​
15/07/2020​
11​
3​

Now in a separate range, I have a list of dates like from 01/07/2020 to 20/07/2020. I want to see the sum of columns B and C against those dates only if the date is more than or equal to the date above. But if the date is more than or equal to larger date, then ignore the sum for earlier date.
So, the sum I want for 01/07/2020 to 14/07/2020 is 12 and 15/07/2020 onwards, I want 14 not 26.

How can I do this?

Thanks
Asad
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
I can achieve the answer using this formula
Rich (BB code):
=LOOKUP(A20,$A$1:$A$2,$B$1:$B$2)+LOOKUP(A20,$A$1:$A$2,$C$1:$C$2)
but as the formula is going to be used in a large range, I was hoping that someone will be able to give me a better solution.
 
Upvote 0
Finally worked out a formula

Rich (BB code):
SUM(IF($A$1:$A$2=LARGE(IF($A$1:$A$2<=A6,$A$1:$A$2),1),$B$1:$C$2,0))
entered with ctrl+shift+enter
 
Upvote 0

Forum statistics

Threads
1,214,385
Messages
6,119,209
Members
448,874
Latest member
b1step2far

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top