I am trying to create a function that adds up all of the miles driven between two dates while using the =arrayformula function to iterate down the column the results
Here is the syntax for my function below:
'TempDataSet'!G2:G: sum range that has the total miles driven
'TempDataSet'!C2:C: criteria column that has all the dates driven
A7: Start Date
B7: End Date
This is the function I wrote below using the sumifs function
=SUMIFS('TempDataSet'!$G$2:$G,'TempDataSet'!$C$2:$C,">="&A7,'TempDataSet'!$C$2:$C,"<="&B7)
This function works, however I would like to implement the =arrayformula function so that the function can auto drag down the results.
I know **you can't use =sumifs while inside an =arrayformula, so this is where I am stuck
What is the way to do this using the =sumif function inside of an =arrayformula?
I've tried also using the =query function, but =arrayformula is not support with the =query function
