So I have an employee mileage log and I would like my spreadsheet to be able to generate subtotals based on shift (shifts are denoted by a change in date and/or participant). I have come at this project from a number of different angles but keep hitting a wall. I did find a great formula in an article I found, but there are other factors that need to be incorporated into the formula and I'm not sure how to do that.
=IF(A9<>A8,SUM($H$8:H8)-SUM($M$7:M7),"")
Essentially, I need a formula that will sum all cells in my desired range that 1) are on the same day, 2) are associated with the same participant, and 3) are not part of the employee's commute.
Ideally, I'd like these subtotals to generate as employees add data to the spreadsheet, rather than someone needing to use the built-in filter feature or built-in subtotal feature after the fact. Anyone have any ideas?
A = Date
B= Participant (generated from a drop-down)
G= Includes commute? (generated from a drop-down Y/N)
H= Miles Traveled (the values I want to sum)
Bookmarks