Calculate Function With 2 Criteria

bravo1563

New Member
Joined
Dec 25, 2013
Messages
20
Hello All,
I have a pretty easy formula that I need to tweak. Below is my table data, I'll I'm trying to do is write a calculated column that sums any the values in (Value to Sum) on each row less than or equal to the "Date" and "Investor".

I've tried using the calculate function but nothing's filtering correctly I keep getting the total of 327. Here's the formula I've written
=CALCULATE(SUM([Value to Sum]),filter(Table1,Table1[Date]<=[Date]),FILTER(Table1,Table1[Investor]=[Investor]))

The Excel formula would look like this...sumifs(value to sum, date,"<=&Date", investor, "@investor")
So for example the "red" investor with the date of 6/15/2016" should return a value of 79 (57+22). Any help would be greatly appreciated, thanks!

DealInvestorDateValue to Sum
1red1/1/201657
2green5/5/201697
3blue10/2/201452
3yellow11/12/2015
5hello1/5/201349
4red6/15/201622
7yellow10/14/201550

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Code:
=CALCULATE(SUM([Value to Sum]),filter(Table1,Table1[Date]<=EARLIER( [Date] ) ),FILTER(Table1,Table1[Investor]=EARLIER( [Investor] ) ))
 
Upvote 0

Forum statistics

Threads
1,215,833
Messages
6,127,156
Members
449,367
Latest member
w88mp

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