Batstatgirl
New Member
- Joined
- Nov 25, 2014
- Messages
- 4
Hello! I'm trying to play with numbers (Excel 2010) from counting elk that crossed by a game camera. When using the SUMIFS function to categorize data by month (elk counted in February, March, April, May), the values given by my April and May formula are off by 1 compared to the value given by a SUM function with manually selected days. The formula I'm using is:
=SUMIFS(C3:C72,A3:A72,">=5-1-2014",A3:A72,"<=5-31-2014")
A column: dates (m-dd-yyyy)
C column: number of elk on that date
After some investigation, it seems that the SUMIFS formula isn't adding the data point from 5-31-14 (and 4-30-14, both of which have C column values of 1- the missing 1!!). February and March don't have data for the last day of the month, and the SUMIFS formula gives the correct numbers.
I just had a brain wave while writing this and switched the formula to:
=SUMIFS(C3:C72,A3:A72,">=5-1-2014",A3:A72,"<6-1-2014")
That also saves having to juggle numbers on Leap Years. Great success! On my way to Excel Wizard level.
But I'm still curious as to why the original formula is not inclusive of the final day of the month despite using "<=date". Any insights?
Thanks,
Kate
=SUMIFS(C3:C72,A3:A72,">=5-1-2014",A3:A72,"<=5-31-2014")
A column: dates (m-dd-yyyy)
C column: number of elk on that date
After some investigation, it seems that the SUMIFS formula isn't adding the data point from 5-31-14 (and 4-30-14, both of which have C column values of 1- the missing 1!!). February and March don't have data for the last day of the month, and the SUMIFS formula gives the correct numbers.
I just had a brain wave while writing this and switched the formula to:
=SUMIFS(C3:C72,A3:A72,">=5-1-2014",A3:A72,"<6-1-2014")
That also saves having to juggle numbers on Leap Years. Great success! On my way to Excel Wizard level.
But I'm still curious as to why the original formula is not inclusive of the final day of the month despite using "<=date". Any insights?
Thanks,
Kate