That's smashing. Thanks! Don't know what the deal is with the file size. I ended up doing something similar (adding a column to the source data) and doing pivot tables based on that, but your solution is way better.