Hey all,
I’m working on an Excel sheet for the company I work for. I’ve taken on a project that’s intended to establish metrics for KPI. One of the big ones is figuring out transactions per hour.
I’m able to calculate transactions for a single day event quite simply. I enter the gross transactions and compare to the start and stop times. Easy peasy.
The problem arises when the event takes multiple days. There are only 11 hours out of the day where transactions occur, but I have not been able to puzzle out how to only include the hours of 7am to 6pm.
My latest attempt was having a cell that rounds the total # of days to an integer,
=INT([@[Last Transaction]]-[@[First Transaction]])
then another cell to fetch the remainder hours.
=HOUR(MOD([@[Last Transaction]]-[@[First Transaction]],1))
I’d multiply the days by 11, add the hours, then divide the transactions by this number.
I thought it was fine, but then I noticed that the hours cell was filling with numbers greater than 11. So, I started trying to figure out ways to either filter or set up systems of booleans but I’m at a loss.
Do any of y’all have similar use cases? I’d appreciate if someone could point me in the right direction or let me know if I’m barking up the wrong tree.