markpalmer
New Member
- Joined
- Sep 24, 2013
- Messages
- 27
I posted this in the general forum with no luck and someone suggested trying powerpivot to accomplish this...
I am trying to look for a way to use a pivot table (?) to accomplish this lookup / sorting issue i have. Sheet one is a query which lists line item detail - item / quantity / invoice / price each.
Sheet two is where i want to sort the information in a column type of look. I want to be able to enter an invoice number in "c4" / "d4" - ect and have it then populate the rest of the items with the item / price and the appropriate quantity. Ideally i want only onw row per item as well as shown below. The number of rows will vary depending on the invoice
Any help or suggestions would be appreciated.
Excel 2010[TABLE="class: cms_table"]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH][/TH]
[TH]A[/TH]
[TH]B[/TH]
[TH]C[/TH]
[TH]D[/TH]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]item[/TD]
[TD]Quantity[/TD]
[TD]invoice[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]Blue Coat[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1115[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]Red Coat[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1115[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]Socks[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]1125[/TD]
[TD="align: right"]200[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD]Shoes[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1125[/TD]
[TD="align: right"]200[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD]Hat[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1120[/TD]
[TD="align: right"]300[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD]Blue Hat[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1120[/TD]
[TD="align: right"]300[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD]Blue Coat[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1125[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD]Blue Hat[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1115[/TD]
[TD="align: right"]300[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD]Socks[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]1120[/TD]
[TD="align: right"]200[/TD]
[/TR]
</tbody>[/TABLE]
Sheet1
Excel 2010[TABLE="class: cms_table"]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH][/TH]
[TH]A[/TH]
[TH]B[/TH]
[TH]C[/TH]
[TH]D[/TH]
[TH]E[/TH]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]invoice[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"][/TD]
[TD="align: center"]price each[/TD]
[TD="align: center"]1115[/TD]
[TD="align: center"]1120[/TD]
[TD="align: center"]1125[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]Blue Coat[/TD]
[TD="align: center"]100[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"][/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]Red Coat[/TD]
[TD="align: center"]100[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]Socks[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"][/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]6[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]Shoes[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"]Hat[/TD]
[TD="align: center"]300[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]10[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"]Blue Hat[/TD]
[TD="align: center"]300[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
I am trying to look for a way to use a pivot table (?) to accomplish this lookup / sorting issue i have. Sheet one is a query which lists line item detail - item / quantity / invoice / price each.
Sheet two is where i want to sort the information in a column type of look. I want to be able to enter an invoice number in "c4" / "d4" - ect and have it then populate the rest of the items with the item / price and the appropriate quantity. Ideally i want only onw row per item as well as shown below. The number of rows will vary depending on the invoice
Any help or suggestions would be appreciated.
Excel 2010[TABLE="class: cms_table"]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH][/TH]
[TH]A[/TH]
[TH]B[/TH]
[TH]C[/TH]
[TH]D[/TH]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]item[/TD]
[TD]Quantity[/TD]
[TD]invoice[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]Blue Coat[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1115[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]Red Coat[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1115[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]Socks[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]1125[/TD]
[TD="align: right"]200[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD]Shoes[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1125[/TD]
[TD="align: right"]200[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD]Hat[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1120[/TD]
[TD="align: right"]300[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD]Blue Hat[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1120[/TD]
[TD="align: right"]300[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD]Blue Coat[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]1125[/TD]
[TD="align: right"]100[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD]Blue Hat[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]1115[/TD]
[TD="align: right"]300[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD]Socks[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]1120[/TD]
[TD="align: right"]200[/TD]
[/TR]
</tbody>[/TABLE]
Sheet1
Excel 2010[TABLE="class: cms_table"]
<tbody>[TR="bgcolor: #DAE7F5"]
[TH][/TH]
[TH]A[/TH]
[TH]B[/TH]
[TH]C[/TH]
[TH]D[/TH]
[TH]E[/TH]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]invoice[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"][/TD]
[TD="align: center"]price each[/TD]
[TD="align: center"]1115[/TD]
[TD="align: center"]1120[/TD]
[TD="align: center"]1125[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]Blue Coat[/TD]
[TD="align: center"]100[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"][/TD]
[TD="align: center"]4[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD="align: center"]Red Coat[/TD]
[TD="align: center"]100[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD="align: center"]Socks[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"][/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]6[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]Shoes[/TD]
[TD="align: center"]200[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]1[/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD="align: center"]Hat[/TD]
[TD="align: center"]300[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"]10[/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD="align: center"]Blue Hat[/TD]
[TD="align: center"]300[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
Sheet2