Numbers - Formula to return values based on specific dates

Hey I've tried googling and even some Chat GPT but haven't found the solution I'm after.


It seems easy in theory but I just can't get the formula I'd need to make it work.


Basically I have Column A with dates written like "01 Sep 23" with varying months and dates.

In Column B I have $ values.


I'm trying to create a formula that will calculate all the different month values separately and return the total amount for each month.


For example Septembers Total is $x. Octobers total is $x. etc.


Is this possible with Numbers?

Posted on Aug 14, 2023 3:01 AM

Reply
Question marked as ⚠️ Top-ranking reply

Posted on Aug 14, 2023 4:47 AM

Before Rockondevil reports that the formula raises a syntax error, here's the corrected version:


in cell D2:

=SUMIFS($B,$A,">="&C2,$A,"<="&EOMONTH(C2,0))


It also makes it copyable without modifications.


Edit: better include the year in entering the months to confirm which year the month is in, if you do this exercise for many years.





3 replies
Sort By: 
Question marked as ⚠️ Top-ranking reply

Aug 14, 2023 4:47 AM in response to krzychug

Before Rockondevil reports that the formula raises a syntax error, here's the corrected version:


in cell D2:

=SUMIFS($B,$A,">="&C2,$A,"<="&EOMONTH(C2,0))


It also makes it copyable without modifications.


Edit: better include the year in entering the months to confirm which year the month is in, if you do this exercise for many years.





Reply

Aug 14, 2023 6:17 AM in response to Rockondevil

You can do this in less than a minute with a Pivot Table. No formulas! Just click and drag.




Click in the data table and from the menu choose Organize > Create Pivot Table > On Current Sheet.


Then in the Pivot Options pane at the right drag the Fields down into the boxes below as shown in the screenshot.


That's all there is to it!


SG

Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Numbers - Formula to return values based on specific dates

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.