consolidate data on one criteria and copy to other sheet

ellilio

New Member
Joined
Nov 23, 2017
Messages
1
hi, after a long time of searching I decided to post my question and ask for help.

I have a data like this from sales, and I should send it to invoice template for print. I want to create a macro
asking for invoice number to print. then send data to a template invoice on a sheet 2

[TABLE="width: 530"]
<colgroup><col><col><col span="4"><col><col></colgroup><tbody>[TR]
[TD]Inv#[/TD]
[TD][/TD]
[TD]Date[/TD]
[TD][/TD]
[TD]Desc[/TD]
[TD]Qty[/TD]
[TD]Length[/TD]
[TD]Width[/TD]
[TD]Thickness[/TD]
[TD][/TD]
[TD]CubicM[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]230[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.01725[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]250[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.02125[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]260[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.02340[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.02850[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Pine[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.11250[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/24/2017[/TD]
[TD="align: right"][/TD]
[TD]Pine[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.07800[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0184[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0184[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]250[/TD]
[TD="align: right"]16[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0200[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]260[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0221[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]280[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0252[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Oak3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]255[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.0242[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD="align: right"][/TD]
[TD="align: right"]10/27/2017[/TD]
[TD="align: right"][/TD]
[TD]Pine[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]0.1125[/TD]
[/TR]
</tbody>[/TABLE]

on sheet 2 invoice template it should look like this

invoice number 13


14 A B C
15 0.0904 4 Oak2
16 0.1905 9 pine


Thanks in advance
ellilio
 

Excel Facts

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

Forum statistics

Threads
1,224,828
Messages
6,181,206
Members
453,022
Latest member
RobertV1609

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