Excel SUMIF for specific dates.

I have 2 columns of data. Dates and currency.
I need a formula that will look for a specific month and year  in the date range and then sum up corresponding currency values.

The issue i have is that the date is not plain text, it comes from another formula. The same goes for currency on one of my sheets. I have a few sheets for apply this to.

If I replace the date as actual date text I can make this work with SUMIF but when the date comes from another formula my end result is always $0.00

How to do I specify a range of dates and have it pass the date values instead of the formula that generated those dates?
I attached an example of what I want it to look like.
I'd like each formula to reference the year 2014 in the corner and the month JAN.... above.
The purpose of my report is to go through a list of all the support contracts we have and add up the ammounts for each month of the year.

Who is Participating?
Angelp1ayConnect With a Mentor Commented:
Check attachment :)


Open in new window

baysysadminAuthor Commented:
Great start but your formula has the same issue as mine.
It only works if the date is text. But mine comes form another formula which looks like this..


and returns a value of


 So how do we pass that value as date text?
Maybe record a macro to copy the formula results into a separate list of values then work from there? (or is that infeasible?)
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

baysysadminAuthor Commented:
This sheet will be used by few people, im trying to keep it as simple as possible with as few extra columns as possible.

I already have a separate summary list of these date which is made by the big formula above.
Id hate to make another list from my list.

Is there no way to change how it passes that date value?
baysysadminAuthor Commented:
Im not sure why but I got it working.
I changed the date range to a Named range and now number values add up.
I guess it doesnt like $I$12:$I$15 way of doing it.

ill do some more testing before closing the question.

Thanks for your help.
All of my cells are dates. Sorry should have pointed out even the month headers are now dates (with custom formatting).
baysysadminAuthor Commented:
Yes i saw that and it worked for me with named ranges.

I am not having another issue.
We use Atlassian confluence, and after I embedd the excel all my numbers show as $0.00
I think confluence excel plug in cant render SUMIFS formulas.
Ive had this issue with other formulas and conditional formating.

Is there a different way of doing this, using some more legacy formulas?
You could add a column to your second table that gives the first of that month.

Open in new window

Then you could use SUMIF instead of SUMIFS (because you just match with equal instead of in the range).
baysysadminAuthor Commented:
didnt work, so I tried it this way and it worked and embeded fine with confluence BUT it didnt work for those dates that came from a formula only text dates, even after using named ranges.


Turns out that some of the forumals in my date range return a "."
The reason i put a . is so I can see that there is a fromula there rather than having a blank cell.
so I changed the . to a 0 and now dates evalute fine using above formula.
baysysadminAuthor Commented:
Glad you found a way!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.