I have an Excel spreadsheet that easily calculates the current difference using this formula:
A B C
1 date status timeInStatus
2 12/26/2010 Good N/A
3 12/27/2010 Bad 24.00 << =(A3-A2)*24
4 12/28/2010 Not-Good 24.00 << =(A4-A3)*24
he used to calculate the difference in dates as a kind of grand total. (Obviously, the example is simple, but real-time cells also contain time.)
So, in this example, itβs easy to see that 24 hours were spent in the βGoodβ state, 24 in the βBadβ state, and the status βNot Goodβ is still active.
I have an equavalent table in Access that has columns of equipment, date and status. What I would like to do with this is to create a query that does the same thing as the example above. Just the total time in each status to answer the question "How much time did I spend in this status?" The problem is that Iβm sure that this will require some kind of sub-query magic, which is on my head. Any ideas?
Thanks in advance.
source
share