# Can never get SUMIF by date to work

In this case, I hope it's the 2 different date formats, but I tried sumif, sumifs, and sumproduct examples, but none of them have worked.

I want to sum the Fares on Sheet 1 for each date.
UberTrips.xlsm
LVL 22
###### 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:
I have changed 'Summary' sheet's Fares column formula to '=SUMIFS(Sheet1!\$B:\$B,Sheet1!\$A:\$A,">="&Summary!\$A2,Sheet1!\$A:\$A,"<"&Summary!\$A2+1)'.
UberTrips.xlsm

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.

Group Finance ManagerCommented:
I would use a PivotTbale instead. Also, you can change the data to an Excel Table and the data will be dynamic.

Overview of Excel Tables
UberTrips.xlsm
Finance AnalystCommented:
Your use of the INT function is the wrong way round (for want of a better term). The value on Summary is already an integer as it doesn't have the time portion. It is the values on Sheet1 that need the INT applying.

Slight variation on suggestion above:

=SUMIFS(Sheet1!\$B:\$B,Sheet1!\$A:\$A,">="&\$A2,Sheet1!\$A:\$A,"<"&\$A3)

As the formula is on Summary sheet, you don't need the reference to Summary sheet. I have used next date value rather than current plus 1.

Thanks
Rob H
East Coast ManagerAuthor Commented:
Thanks so much!
###### 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 Excel

From novice to tech pro — start learning today.