Solved

Excel formula to sum cell values for a certain month before a certain calendar day

Posted on 2011-05-10
Medium Priority
212 Views
The current formula in cell G26 sums the total from column B that belongs to the same month (in column A) like the date in cell F26.

The formula should be changed to display the result in G27, i.e. instead of the total sum of the respective month, only the total sum of the respective month <= the date in F26.
formula-month-until-date.xls
0
Question by:BrdgBldr

LVL 85

Accepted Solution

Rory Archibald earned 500 total points
ID: 35728890
Try:

=SUMPRODUCT(--(YEAR(\$A\$2:\$A\$777)=YEAR(F26)),--(MONTH(\$A\$2:\$A\$777)=MONTH(F26)),--(DAY(\$A\$2:\$A\$777)<=DAY(F26)),\$B\$2:\$B\$777)
0

Author Closing Comment

ID: 35728996
thanks a lot! perfect!
0

Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Suggested Courses
Course of the Month16 days, 8 hours left to enroll