# 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?

Thanks!
###### Who is Participating?

x
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.

Commented:
check this
``````=SUMIFS(B3:B20,A3:A20,CONCATENATE(">=",TEXT(C1,"yyyy-mm-dd")),A3:A20,CONCATENATE("<=",TEXT(C2,"yyyy-mm-dd")))
``````
0

Experts Exchange Solution brought to you by

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

DeveloperCommented:
Hi,
if you don't get result from FarWest solution try this simple:

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

-FA
0
Commented:
sorry correct comparing cells
``````=SUMIFS(B3:B20,A3:A20,CONCATENATE(">=",TEXT(C2,"yyyy-mm-dd")),A3:A20,CONCATENATE("<=",TEXT(D2,"yyyy-mm-dd")))
``````
0
Owner, 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?
0
###### 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.