# Sort Data From Multiple Worksheets

Status
Not open for further replies.

#### cc11

##### New Member
Hello everyone,

I am looking for either a formula or a macro code, whichever is easiest, but I have three sheets labeled "Mat. Balance", "PO Log", and "PO (0)". Now just to get a grasp of how the workbook functions now is that on the "PO Log" I have a button assigned to a macro that every time I click it, it generates a new PO (0) in numerical order, so PO (1), PO (2), and so on for as many times as I press the button.

What I am now needing to do is incorporate the "Mat. Balance" sheet with the "PO (0)" sheet and each one that follows after that, for as many that I generate. The "Mat. Balance" sheet has 4 columns A, B, E, F, and G. The columns that need to be worked out of are only A and F. Those range from "A4:A118" and "F4:F118". On column A information will be entered, a number, and on column F it will automatically populate in a number(dollar amount) depending on what was entered in on Column A. In the "PO(0)"(and for as many as I generate) the two columns information will be coming out of it "A21:A48" and "I21:I48". On column A information will be entered, a number and on column I the information is automatically populated in and is a number(dollar amount).

So to get into what I want it to do:

So for each PO(0) that is generated (so 1,2,3,4,5,etc.) I am wanting it to (refer to PO(0) pic) to take the information that is entered through A21-48 and Match it (refer to Mat. Balance pic) to whatever info was entered through A4-118 and then whenever it does that, whatever matches it, it will take only what matches it and take a sum from PO(0) I21-48 and enter it on Mat. Balance F4-118.

Let me know if I need to explain this better.

MAT. Balance PO(0)

### Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

#### Marc L

##### Banned User
Do not create duplicate thread !​

#### cc11

##### New Member
I am trying to delete the other thread but am not sure how to?

#### Fluff

##### MrExcel MVP, Moderator
Duplicate to: Sort Data From Multiple Worksheets (as generated) into a Column Depending on Data Entered on Another Column

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread. If you do not receive a response, you can "bump" it by replying to it yourself, though we advise you to wait 24 hours before doing so, and not to bump a thread more than once a day.

Status
Not open for further replies.

Replies
5
Views
241
Replies
6
Views
258
Replies
7
Views
218
Replies
6
Views
269
Replies
0
Views
137

1,181,624
Messages
5,931,024
Members
436,771
Latest member
kwicol

### 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.

### Which adblocker are you using?

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

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