# 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

To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

#### 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
1
Views
106
Replies
2
Views
163
Replies
2
Views
78
Replies
6
Views
129
Replies
0
Views
100

1,181,614
Messages
5,930,937
Members
436,767
Latest member
Langaws

### 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