# Filtered Sum

#### tatorman

##### New Member
This is a shared workbook, so I can't do VBA on this.

How do I Filter the unique values for this in place and show the sum of the materials.
QUEUE .xls
ABCD
1OrderStartMaterialOrderqty
211/23/2004BIKE1
31/15/2005MOTORCYCLE6
42/27/2005CAR1
53/15/2005TRUCK3
61/3/2005MOTORCYCLE1
71/3/2005CAR8
81/11/2005TRUCK1
91/3/2005BIKE7
101/3/2005BIKE9
01.12.05

### Excel Facts

If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

#### tactps

##### Well-known Member
Your best bet is a pivot table. See the Excel help topics on this

#### bigbob

##### Board Regular
Hi
Would a combination of AUTOFILTER and SUBTOTAL do what you want You would have to do each category separately though
Bob

##### MrExcel MVP
Using a formula system...

Keywords. Extracting a unique list or a list of distinct items. [ ISNUMBER, LOOKUP, MATCH, ROW, SUMIF ]
Book5
ABCDEFG
14
2OrderStartMaterialOrderqty0DistinctMaterialTotalQty
311/23/2004BIKE11BIKE17
41/15/2005MOTORCYCLE62MOTORCYCLE7
52/27/2005CAR13CAR9
63/15/2005TRUCK34TRUCK4
71/3/2005MOTORCYCLE1
81/3/2005CAR8
91/11/2005TRUCK1
101/3/2005BIKE7
111/3/2005BIKE9
01.12.05

Formulas...

D2 must house a 0.

D3, copied down:

=IF(ISNUMBER(MATCH(B3,\$B\$2:B2,0)),"",LOOKUP(9.99999999999999E+307,\$D\$2:D2)+1)

F1:

=LOOKUP(9.99999999999999E+307,D:D)

F3, copied down:

=IF(ROW()-ROW(E\$3)+1<=\$F\$1,LOOKUP(ROW()-ROW(E\$3)+1,D:D,B:B),"")

G3, copied down:

=IF(F3<>"",SUMIF(B:B,F3,C:C),"")

Replies
4
Views
121
Replies
10
Views
184
Replies
0
Views
124
Replies
7
Views
239
Replies
3
Views
89

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,151,968
Messages
5,767,375
Members
425,409
Latest member
Whatisanexcel

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back