Filtered Sum

tatorman

New Member
Joined
Dec 15, 2004
Messages
13
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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

tactps

Well-known Member
Joined
Jan 20, 2004
Messages
3,460
Your best bet is a pivot table. See the Excel help topics on this
 

bigbob

Board Regular
Joined
May 31, 2002
Messages
82
Hi
Would a combination of AUTOFILTER and SUBTOTAL do what you want You would have to do each category separately though
Bob
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
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),"")
 

Forum statistics

Threads
1,147,690
Messages
5,742,653
Members
423,746
Latest member
Joaogomes

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Top