Not a problem Kathy, happens all the time /;-{)}
Just as a matter of interest, your problem is also very easily handled in a Pivot Table which means that Excel does all the work for you. Also means that as you add data all is taken care of without having to use dynamic ranges.
Kathy_cocosts.zip
Apologies if I am telling you how to suck eggs.
Regards
Harry