consolidate and count if quantity is not zero

Vagus

New Member
Joined
Jul 31, 2018
Messages
5
Hello and Thank You in advance!
Column B is what I want to consolidate and count. I only want it to appear on the consolidated list If correlated column C has a value greater than zero.
Bid Code

<tbody>
</tbody>
Breakdown Code

<tbody>
</tbody>
Quantity

<tbody>
</tbody>
1LPostGLLM10ft3x6

<tbody>
</tbody>
GLLM 3-1/8 x 6 @ 10ft

<tbody>
</tbody>
0
1LPostGLLM10ft5x8

<tbody>
</tbody>
GLLM 5-1/8 x 7-1/2 @ 10ft

<tbody>
</tbody>
3
2LPostGLLM10ft3x6

<tbody>
</tbody>
GLLM 3-1/8 x 6 @ 10ft

<tbody>
</tbody>
1
2LPostGLLM10ft5x8

<tbody>
</tbody>
GLLM 5-1/8 x 7-1/2 @ 10f

<tbody>
</tbody>
0
3LPostGLLM10ft3x6GLLM 3-1/8 x 6 @ 10ft0
3LPostGLLM10ft5x8

<tbody>
</tbody>
GLLM 5-1/8 x 7-1/2 @ 10f

<tbody>
</tbody>
0
4LPostGLLM10ft3x6GLLM 3-1/8 x 6 @ 10ft4
4LPostGLLM10ft5x8

<tbody>
</tbody>
GLLM 5-1/8 x 7-1/2 @ 10f

<tbody>
</tbody>
7

<tbody>
</tbody>

<tbody>
</tbody>
Thanks again for any help.
 
it looks like

Bid Code​
Breakdown Code​
Quantity​
Column1
1LPostGLLM10ft3x6GLLM 3-1/8 x 6 @ 10ft
#NAME?​
=ETkoBidQty("1LPostGLLM10ft3x6")
1LPostGLLM12ft3x6GLLM 3-1/8 x 6 @ 12ft
#NAME?​
=ETkoBidQty("1LPostGLLM12ft3x6")
1LPostGLLM4ft3x6GLLM 3-1/8 x 6 @ 4ft
#NAME?​
=ETkoBidQty("1LPostGLLM4ft3x6")
1LPostGLLM6ft3x6GLLM 3-1/8 x 6 @ 6ft
#NAME?​
=ETkoBidQty("1LPostGLLM6ft3x6")
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
here is the result
https://1drv.ms/x/s!AopTvf3RGAN5kBDeEQxpsEsdX0_h

M code
Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Bid Code", type text}, {"Breakdown Code", type text}, {"Quantity", Int64.Type}}),
    #"Filtered Rows" = Table.SelectRows(#"Changed Type", each ([Quantity] <> 0)),
    #"Grouped Rows" = Table.Group(#"Filtered Rows", {"Breakdown Code"}, {{"Sum", each List.Sum([Quantity]), type number}}),
    #"Sorted Rows" = Table.Sort(#"Grouped Rows",{{"Breakdown Code", Order.Ascending}})
in
    #"Sorted Rows"

to do that you'll need PowerQuery (Excel 2010/2013 add-in, 2016 built-in)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,388
Messages
6,124,652
Members
449,177
Latest member
Sousanna Aristiadou

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
Back
Top