r/excel • u/Stunning-Oven7153 • May 21 '26
solved How to sum daily interest from 10th of each month to 9th of next month
I have a spreadsheet that has a list of interest accrued, daily (every calendar day), over 4 years. Something like:
INTEREST
21/10/25 $5.10
22/10/25 $2.67
23/10/25 $7.89
I am trying to use sumifs and edate together to sum all the figures for a given month starting from the 10th of the month, so that I can drag the formula through to apply across the 4 years. But I’ve twisted myself into a mental pretzel and can’t seem to make it work.
I would like the end result to be one figure per month, displayed next to the 9th of the month.
So for 9th May 2026, the figure would be the sum of all interest from 10th April 2026 to 9th May 2026.
Does anyone know how to untangle this one? Help would be very appreciated.
Additional info:
- Excel Version (Microsoft Office LTSC Professional Plus 2024)
- Excel Environment (desktop, Windows)
- Excel Language (English)
- Your Knowledge Level (Beginner to Intermediate)
Syntax:
The dates are entered as DD/MM/YY (which seems to update automatically in the body of the cell to DD/MM/YYYY, then displays when the cell isn’t clicked as DD-MM-YYYY).
Where I‘m getting stuck:
- I‘m working on the premise that I’d need to make a set of formulas that:
(a) extract the date within the month; and
(b) then specify that if it’s exactly the 9th, then sumif from the 10th of the prior month up to and including that day.
- I can’t seem to isolate how the sumif function can do that.
•
u/AutoModerator May 21 '26
/u/Stunning-Oven7153 - Your post was submitted successfully.
Solution Verifiedto close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/CFAman 4829 May 21 '26
To generate the list of months, could put this in C1
If desired, you could apply a number format of
mmm-yyor similar, so it only shows month and/or year.Then in D1
EDATE is a little finicky in that it won't accept a 2D range as first argument, but will take a 2D array.
1
u/inwardcalm 3 May 21 '26
I don’t have time to do a full solution right now, but I would explore using EOMONTH() and add 1 day for days 9 and after.
1
u/GregHullender 195 May 21 '26
This is a nice single-cell solution:
A:.Bselects everything in columns A and B down to the end of the data (so not all one million rows). I remove the header (assuming that's just one row). We want to scan down the interest values computing a running sum that resets on the 10th of every month. SCAN won't accept a 2D array, so I "thunk" the rows to make a single column and pass that to SCAN. Inside the LAMBDA of SCAN, I unthunk the row so I can compute the running total and reset to zero on the 10th. Finally, I take that output and only display the values on the 9th.This is a single formula that sits in cell C2 and generates all the results. If you add data to the bottom of columns A and B, the results will update automatically; you don't have to drag this formula.
It does depend on there actually being dates for the 9th and 10th for each month. If you only have weekdays or something, this will fail.
1
u/Ratatttouuillee May 21 '26
if you want like a total showed next to the 9th of the month, then you just shouldn't drag the formula down for each row, and just copy paste the formula manually next to the 9th of each month
1
u/inwardcalm 3 May 24 '26
Assuming you have a table (ctrl+t is your friend!) with these column headings: Date, Interest, Month_end_interest. Put this formula in Month_end_interest:
=IF(DAY([@Date])=9,SUMIFS([Interest],[Date],"<="&[@Date],[Date],">="&(EDATE([@Date],-1)+1)),"")
1
u/PaulieThePolarBear 1929 May 21 '26
Your dates are ambiguous in terms of the format. I'm assuming dd/mm/yyyy based upon your note of daily interest, but please provide clarity in your post.
How is your "given" month entered? To be clear, I'm talking about the entered value, not the displayed value. For example, if your date has been entered as 2026-05-01, but formatted to show May 2026, 2026-05-01 is the answer I'm looking for.
1
u/Decronym May 21 '26 edited Jun 13 '26
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
Decronym is now also available on Lemmy! Requests for support and new installations should be directed to the Contact address below.
Beep-boop, I am a helper bot. Please do not verify me as a solution.
21 acronyms in this thread; the most compressed thread commented on today has 43 acronyms.
[Thread #48520 for this sub, first seen 21st May 2026, 16:06] [FAQ] [Full list] ^[Contact] [Source code]
1
u/[deleted] May 21 '26 edited May 22 '26
[removed] — view removed comment