Adding certain cells
Hi,
I have two ranges, A1:A5, B1:B5.
I want to have a macro that looks up all the values in the 1st range and add
all the cells in 2nd range that match in the 1st range and have a msgbox
output the totals.
For Example:
A B
10 1
5 2
15 3
10 4
15 5
Output:
10 5
5 2
15 8
Thanks.
|