Hi All,
Seems nobody is sure on how to do this so I've re-looked at my approach. I'm currently using this formula to work out the hours spent "in building" per session:
This gives me a value of 0 if the cell it is applied to is not the "out" row. It also gives me a 0 if the user has not swiped in and out correctly. It gives me the time spent in the building if everything works correctly, and this seems to be doing the trick. However, I need to seperate the users, if I don't, once the user changes, the results become corrupt as we have negative times. I think the best thing I could do here is to run a Macro which finds all the different values in Column B (which was the user's name) and creates new worksheets with that name. Then I can apply the formula in each sheet and collate the data at the end, presenting a nice report which has just the user's name and the hours worked.
Actually, as I type that out, that'll be my next problem won't it? Haha.
I've also had to change the format of the cells where the calcs are running to be
as to not have problems with any values returned looking like times of day rather than durations.
Any help would (still) be appreciated.
Bookmarks