James bolton
Member
Hi,
I am really scratching my head here on how to accomplish what I thought would be a really simple task. I'm sure someone here will give me an answer that will have me kicking myself.
I am trying to create a pivot table of all my people's timesheet data to determine how long a person spent in each county. The Pivott Table Rows are COUNTY & PERSON NAME (sub grouped) Values are COUNT of DATES and SUM of HOURS.
Raw data is as follows;
ROW A (PERSON NAME) ROW B (COUNTY) ROW C (JOB CODE) ROW D (COUNTY) ROW E (DATE) ROW F (HOURS)
The problem is, there are hundreds of lines where people have spent time in the same place, on the same day, but for 2 different jobs. Say Joe Blogg's spent 3 hours on the 13th January in Buckinghamshire on Job A, and 4 hours the same day, the same place, on Job B.
When I do a pivot table, the total hours are correct but the count of date shows every line where that person in that county has a date, regardless of whether or not its the same. Is there a way to either count only unique dates on the pivot table, or create a subtotal of total Hours under each person - county - date ?
I feel like this should be simple but really struggling to come up with a solution, any help would be greatly appreciated.
Thanks
I am really scratching my head here on how to accomplish what I thought would be a really simple task. I'm sure someone here will give me an answer that will have me kicking myself.
I am trying to create a pivot table of all my people's timesheet data to determine how long a person spent in each county. The Pivott Table Rows are COUNTY & PERSON NAME (sub grouped) Values are COUNT of DATES and SUM of HOURS.
Raw data is as follows;
ROW A (PERSON NAME) ROW B (COUNTY) ROW C (JOB CODE) ROW D (COUNTY) ROW E (DATE) ROW F (HOURS)
The problem is, there are hundreds of lines where people have spent time in the same place, on the same day, but for 2 different jobs. Say Joe Blogg's spent 3 hours on the 13th January in Buckinghamshire on Job A, and 4 hours the same day, the same place, on Job B.
When I do a pivot table, the total hours are correct but the count of date shows every line where that person in that county has a date, regardless of whether or not its the same. Is there a way to either count only unique dates on the pivot table, or create a subtotal of total Hours under each person - county - date ?
I feel like this should be simple but really struggling to come up with a solution, any help would be greatly appreciated.
Thanks