crosskonaftw
New Member
- Joined
- May 31, 2013
- Messages
- 4
I have a master order form with say 10 SKUs for different products (for simplicity). I want to create a separate sheet that SUMMARIZES only the items that are being ordered (quantity 1 or greater).
My current "dirty" solution is to use a formula that compares if the quantity column is >= 1, and if so, copy the contents of the row cell by cell. The problem with this is that is leaves a blank line whenever a item is NOT ordered.
I would like to find a solution, preferably by formula instead of VB macro, that will check the quantity column and copy it to the summary sheet if quantity is 1 or more, and skip to the next SKU if quantity column for that item is 0 or blank.
I have seen some posts online about using a combination of array formulas, match, etc.. I am somewhat familiar with advanced formula use, but not so much with arrays and advanced nesting. Any ideas? Thanks all in advance for your help
See below for example:
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]ITEM[/TD]
[TD]PRICE[/TD]
[TD]QTY[/TD]
[TD]TOTAL[/TD]
[/TR]
[TR]
[TD]SKU 1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SKU 2[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]SKU 3[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]SKU 4[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SKU 5[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]SKU 6[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SKU 7[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]SKU 8[/TD]
[TD]5[/TD]
[TD]1[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]SKU 9[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SKU 10[/TD]
[TD]4[/TD]
[TD]1[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
and resulting summary sheet to show:
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]ITEM[/TD]
[TD]PRICE[/TD]
[TD]QTY[/TD]
[TD]TOTAL[/TD]
[/TR]
[TR]
[TD]SKU 2[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]SKU 3[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]SKU 5[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]SKU 7[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]SKU 8[/TD]
[TD]5[/TD]
[TD]1[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]SKU 10[/TD]
[TD]4[/TD]
[TD]1[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
My current "dirty" solution is to use a formula that compares if the quantity column is >= 1, and if so, copy the contents of the row cell by cell. The problem with this is that is leaves a blank line whenever a item is NOT ordered.
I would like to find a solution, preferably by formula instead of VB macro, that will check the quantity column and copy it to the summary sheet if quantity is 1 or more, and skip to the next SKU if quantity column for that item is 0 or blank.
I have seen some posts online about using a combination of array formulas, match, etc.. I am somewhat familiar with advanced formula use, but not so much with arrays and advanced nesting. Any ideas? Thanks all in advance for your help
See below for example:
[TABLE="class: grid, width: 300"]
<tbody>[TR]
[TD]ITEM[/TD]
[TD]PRICE[/TD]
[TD]QTY[/TD]
[TD]TOTAL[/TD]
[/TR]
[TR]
[TD]SKU 1[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SKU 2[/TD]
[TD]2[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]SKU 3[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]SKU 4[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[T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