Forum Discussion
SUMIF
Hi HansVogelaar
Sorry, I was trying to upload the screen shot but can't seem to be able to do that.
I7 - reference date for calculating outstanding amounts for various maturity
E6:E98 - Maturity dates
C6:C98 - Is principal amount that will be repaid on maturity.
I want to calculate amount that will mature in in x years from I7.
Thanks
AB
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.
- beirnegroupNov 15, 2022Copper ContributorHi, 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")- 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")