List with data to be sorted into various sheets based on column data

SteynBS

Board Regular
Joined
Jun 27, 2022
Messages
104
Office Version
  1. 365
Platform
  1. Windows
So I have a Master Data Sheet with 3 columns, Bin number A, Barcode B, and Qty C. I have 2 additional sheets, Bin 1 and Bin 2. I need the Data in Col B and Col C to be sorted and copied to Bin 1 if the data in Col A is 1 and the data of Col B and C copied to Sheet Bin 2 if the value in Col A is 2. Any way to do this with VBA?

1660413583289.png
 

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.
Hi,

Can you try this formula. I am not sure if this is what you are looking for or you need a VBA as solution.

=FILTER(Table1,Table1[Bin]=1,"") (Note: Table1 is the table you have shown above and formula is inserted in A2 of sheet Bin1)
 
Upvote 0
Hi,

Can you try this formula. I am not sure if this is what you are looking for or you need a VBA as solution.

=FILTER(Table1,Table1[Bin]=1,"") (Note: Table1 is the table you have shown above and formula is inserted in A2 of sheet Bin1)
Hi, Thank you for your reply.

Yes, this formula works. I use the formula in the sheet I want the data. I have noticed that there are duplicate values in Col C. I use the unique formula with the filter formula. Works a charm. Thank you. I would however like to achieve this with a VBA. few photos below as reference.

So my source data is in sheet "Cipher data refresh" in Column B, all the data that is a "1" should be copied to Sheet "Write off Z11" and data with a "2" in Col B should be copied to Sheet "Write off X11" In both instances only the unique data in Col C and D should be copied. (Note if there are Duplicate Data in C the data in D should SUM when copied to the other sheet.

In the Sheets "Write off X11" and "Write off Z11" Col A-C I will get the data from another source.

1660551469932.png

1660551503449.png

1660551534393.png
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,850
Members
449,051
Latest member
excelquestion515

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