Sumif inbetween dates

Column A has a list of dates. Column B has a list of values I want to add.

If the date is inbetween the date in C2 and D2 (including the dates of C2 and D2) then I want it to sum the value in Column B.

Any idea how to write this sumif code?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

check this

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Farzad AkbarnejadDeveloperCommented:
if you don't get result from FarWest solution try this simple:

=SUMIFS(B1:B24,A1:A24,">="&C2, A1:A24, "<="&D2)

sorry correct comparing cells

Open in new window

Dale FyeOwner, Developing Solutions LLCCommented:
I'm confused; you posted this to the Access topic area.  Did you want to do this in Access?  In Access, you would normally use the values in the first row of the spreadsheet as column headers.

Is this Excel file linked to Access?  

Did you really mean in between C2 and D2, or did you mean between the data in the relevant row of the C and D columns?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.