View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
JN[_3_] JN[_3_] is offline
external usenet poster
 
Posts: 4
Default 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.