Forum Discussion
A_B_Excel
Oct 21, 2022Copper Contributor
SUMIF
Hi I am looking for help with a formula to calculate outstanding portfolio. Each investment has a maturity date a cash flow on the maturity. I want to calculate outstanding portfolio on each dat...
HansVogelaar
Oct 21, 2022MVP
Let's say "x" is in A10
=SUM((DATEDIF(I$7,$E$6:$E$98,"y")<A10)*$C$6:$C$98)
If you don't have Microsoft 365 or Office 2021, confirm the formula by pressing Ctrl+Shift+Enter.
The formula can be filled down or to the right if you have other values of "x" below or to the right of A10.
beirnegroup
Nov 15, 2022Copper Contributor
Hi, I have a similar but slightly expanded problem. I have a table with income coming in from an investment portfolio. In the table I have Type (which are 'Dividend', 'Interest', or 'Principal'. I also have the date of the payment and have calculated the number of days to payment. I want to summarize the payments in a table that distinguishes between 'Interest', 'Dividend' and 'Principal' and I want to days to payment by <30, 30 to 90, 90 to 180, 180 to 360, and greater than 360. The following formula returns 0. =SUMIFS(CF[Total
CF],CF[Days to
Payment],"<A56",CF[Type],"=Dividend",CF[Type],"=Interest")
CF],CF[Days to
Payment],"<A56",CF[Type],"=Dividend",CF[Type],"=Interest")
- HansVogelaarNov 15, 2022MVP
I assume that cell A56 contains a number. If so:
=SUMIFS(CF[Total
CF],CF[Days to
Payment],"<"&A56,CF[Type],"=Dividend",CF[Type],"=Interest")