PDA

View Full Version : Lookup values AND Subtotal



nepotist
06-06-2011, 07:20 PM
Hello
I have the following three columns in sheet1

Total Header1 Header2
20 A B
10 C D
10 A B

I need to pull up values in sheet2 which is as follows

Total Header1 Header2
30 A B
10 C D

basically it is subtotal.

Code you guys provide a formula or a macro for this.

Thank you

Bob Phillips
06-06-2011, 09:42 PM
Sort it, Data>Sort, and sum it, Data>Subtotal.

CatDaddy
06-07-2011, 11:25 AM
=SUMPRODUCT might be useful, hear a lot about that these days

Chabu
06-07-2011, 12:47 PM
or use a pivottable