Forum Discussion
GSPmagik
Mar 15, 2022Copper Contributor
Return cells that fall within a specified date range
I'm trying to extract income and expenses between two dates from a single column, then populate separate income and expense columns, removing all empty cells. I'd like to avoid using macros or pivot ...
- Mar 15, 2022
I have no idea where the $130 and $563 come from, but take a look at the attached sample workbook. It uses the FILTER function, available in Excel in Microsoft 365, Office 2021 and Excel Online.
HansVogelaar
Mar 15, 2022MVP
<grin>
Wildecoyote1966
Mar 15, 2022Brass Contributor
oh I downloaded your file and thought oh he has it. I only have version 2019
I used =IF($B27="","",IF(C27="","",IF(Final!F25="",IF(D27="Interest",SUMIFS($V$25:$V$759,$U$25:$U$759,MONTH(C27),$S$25:$S$759,YEAR(C27)),""),Final!F25))) in one of my Amortization schedules to calculate the interest
which looks at the actual loan activity (tab final) then checks the month and year
so maybe something like
=IF(D27="Interest",SUMIFS($V$25:$V$759,$U$25:$U$759,MONTH(C27),$S$25:$S$759,YEAR(C27)),""),Final!F25))) but that would probably add it together