How to copy specific columns to other sheet in office 2021 without vba with some filter and format..

pankajgrover

Board Regular
Joined
Oct 27, 2022
Messages
157
Office Version
  1. 2021
Platform
  1. Windows
Hi i want to copy specific columns to other sheet in office 2021. here is 3rd column name transaction type in AMZ sheet. which i want filter only "shipment" and copy corresponding specific columns in sheet1 without vba. i also used formula =AMZ!A2 & "" to copy columns but i do not know how filter works , because i want values that match to "shipment". also i want when copy date column, date should be DD-MM-YYYY FORMAT in target sheet. thanks
source sheet
Amazon_Sales.xlsx
ABCDEF
1Invoice NumberInvoice DateTransaction TypeOrder IdShipment IdQuantity
2IN-1328/02/2024 23:55Shipment404-8351276-2411569A084598828TXJ9ZJJKVWO2
307/03/2024 11:39Cancel408-1129685-2166757A00703522BRIHLXCC8QL71
4IN-1605/03/2024 22:19Shipment171-1376367-6624335A10236732OFQWNH1DULJG1
5IN-1505/03/2024 18:53Shipment408-9509727-4152303A012408719AAGUK57EMUK1
607/03/2024 11:39Cancel407-2782749-1217905A01718392OEH1RJHOZYFW1
7IN-1405/03/2024 17:20Shipment406-2979068-9553944A06664642D55BH8F06TTB1
8IN-1807/03/2024 11:48Shipment408-1129685-2166757A00703522BRIHLXCC8QL71
907/03/2024 11:39Cancel402-6409050-1440357A00997353249FX3HD82QO1
10IN-1907/03/2024 12:05Shipment406-0968836-6761124A0787165ZD0QY6IQXRGF1
AMZ


target sheet
Amazon_Sales.xlsx
ABC
1Invoice NumberInvoice DateQuantity
2
3
4
5
6
7
8
9
10
Sheet1
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi,

You should be able to do what you want using advanced filter without any VBA.

Try following this guidance & see if will do what you want

1 – Add a criteria range in your target sheet & specify the filter criteria

Book1
ABCDEFGH
1Invoice NumberInvoice DateQuantityTransaction Type
2Shipment
3
4
Sheet1


2 – With the target sheet ACTIVE, click Data > Advanced as in screen shot

1712652086203.png


3 - In the Advanced Filter dialog box, select Copy to another location from the Action section.

4 - click button to select the entire data range which you want to filter in the AMZ sheet which MUST include the header row.

5 - click the button beside the Criteria range and select the criteria range from your target sheet which also must include the header row.

6 – click the button beside the Copy to box and in the target sheet, select the ENTIRE header row range (Columns A-C)

7 - click OK button, the filtered result should be extracted into your target sheet based on the filter criteria. You may need to manually format date column to meet specific format requirement.

Dave
 
Upvote 0
Hi,

You should be able to do what you want using advanced filter without any VBA.

Try following this guidance & see if will do what you want

1 – Add a criteria range in your target sheet & specify the filter criteria

Book1
ABCDEFGH
1Invoice NumberInvoice DateQuantityTransaction Type
2Shipment
3
4
Sheet1


2 – With the target sheet ACTIVE, click Data > Advanced as in screen shot

View attachment 109674

3 - In the Advanced Filter dialog box, select Copy to another location from the Action section.

4 - click button to select the entire data range which you want to filter in the AMZ sheet which MUST include the header row.

5 - click the button beside the Criteria range and select the criteria range from your target sheet which also must include the header row.

6 – click the button beside the Copy to box and in the target sheet, select the ENTIRE header row range (Columns A-C)

7 - click OK button, the filtered result should be extracted into your target sheet based on the filter criteria. You may need to manually format date column to meet specific format requirement.

Dave
how this will be filter name "shipment". i want to copy shipment corresponding cells. can we use (vlookup) or (choose) function to perform this...
 
Upvote 0
How about
Fluff.xlsm
ABC
1Invoice NumberInvoice DateQuantity
2IN-1328/02/20242
3IN-1605/03/20241
4IN-1505/03/20241
5IN-1405/03/20241
6IN-1807/03/20241
7IN-1907/03/20241
8
Sheet4
Cell Formulas
RangeFormula
A2:C7A2=LET(f,FILTER(AMZ!A2:F100,AMZ!C2:C100="Shipment"),INDEX(f,SEQUENCE(ROWS(f)),{1,2,6}))
Dynamic array formulas.
 
Upvote 0
How about
Fluff.xlsm
ABC
1Invoice NumberInvoice DateQuantity
2IN-1328/02/20242
3IN-1605/03/20241
4IN-1505/03/20241
5IN-1405/03/20241
6IN-1807/03/20241
7IN-1907/03/20241
8
Sheet4
Cell Formulas
RangeFormula
A2:C7A2=LET(f,FILTER(AMZ!A2:F100,AMZ!C2:C100="Shipment"),INDEX(f,SEQUENCE(ROWS(f)),{1,2,6}))
Dynamic array formulas.
Hi @Fluff sir. its working so good. Thanks.. Also guide me i add another 1 column say 15 number column. suppose in above formula INDEX(f,SEQUENCE(ROWS(f)),{1,2,6,15})) but in this 15 number column some cells are blank and some are fill with values in amz sheet. this formula showing results blank cells with 0. can we do blank cells should be blank instead of zero.. thanks
 
Upvote 0
How about
Excel Formula:
=LET(f,FILTER(AMZ!A2:O100,AMZ!C2:C100="Shipment"),x,INDEX(f,SEQUENCE(ROWS(f)),{1,2,6,15}),IF(x="","",x))
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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