Just noticed there's a slight problem with the code above. When it unmerges the cells it causes some duplicatw rows. This is caused by your original data layout rather than the code itself.
Also the dates are in text format and Excel won't like trying to pivot off of those.
Adding the below just before the last "End With" will resolve both those issues
You could add a formula to a 'helper column' that flags the first day of each absence instance to count how many times each person is off.
Obviously count the records to show the number of days they're off. With a little magictrickery you can calculate average days per absence instance or which specific day of the week they're most often off.
I've done similar work to this in the past and found it rather interesting to cross reference the absence data with certain events. Very telling how many people were off "sick" on the Monday after their team lost a big game on the Sunday just before...
Give us a shout if you need more help with it.
BSB
Bookmarks