Hi
Looking for a function to give subtotal for current month
My table will have entries for the whole year & only need to see current months totals
See example
Thanks
Hi
Looking for a function to give subtotal for current month
My table will have entries for the whole year & only need to see current months totals
See example
Thanks
Last edited by mycon73; 02-18-2024 at 12:51 AM.
MyCon
-- Using Latest Version of Excel
Something like this will get you out of troublePlease Login or Register to view this content.
Hi russkris and others
Thanks for answering
Yes - This gets me the current month's total but does not give me subtotal if I filter more.
I'm looking for a subtotal type of function between dates
1st to end of the month is only the first filter
I may filter more such as per week.
Thanks
Obviously there is more to this workbook then has been shared. Your original request to "give subtotal for current month" is complete.
Sound like it would be better to create a pivot table.
russkris
Yes - I did state this forgetting to add the filter options or requests.
However, I did state my table will show entries for the whole year.
I also have other categories (not show) to filter such as type of expense entry.
← Want subotal for current month - 1st of the month to end of the month
Needs to also filter or give subtotal when additional filters are selected
Example - Want to filter for current week - Feb. 12th to Feb. 18th
One way:I'm looking for a subtotal type of function between dates
Please enter these dates in C3 and D3 and tryFormula:Please Login or Register to view this content.
How aboutFormula:Please Login or Register to view this content.
Fluff13
=SUM(FILTER(D9:D200,(C9:C200>=C3)*(C9:C200<=D3)*(MAP(C9:C200,LAMBDA(m,SUBTOTAL(103,m))))))
Works great!
What do these mean?
MAP
LAMBDA
Thanks everyone for assisting
or, another variation on a theme:
=SUM(FILTER(D9:D200,(C9:C200>=C3)*(C9:C200<=D3)*(MAP(C9:C200,LAMBDA(m,AGGREGATE(3,7,m))))))
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh
This also Try
Formula:Please Login or Register to view this content.
atul
If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.
Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".
Glad to help & thanks for the feedback.
MAP & LAMBDA are Excel functions, https://exceljet.net/functions/map-function
Hi Everyone
Thanks for the great feedback and options!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks