hoshino,
See the attached workbook "Automating repetitive tasks - hoshino.xls".
The formula in cell H2 (copied down):
=SUMPRODUCT(($B$2:$B$1000=$G2)*($F$2:$F$1000))
You will not have to sort your data in column B.
If you would like this automated, then please post your workbook (and I will create a macro for you) - scroll down and see "Manage Attachments".
Have a great day,
Stan
Bookmarks