Copy a few Columns from one sheet to another so they can be sorted and updated automatically

DeGeorge

New Member
Joined
Jan 29, 2024
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hi

I have a table in Sheet 1 with 6 columns. I want to copy columns 2, 4, and 5 to Sheet 2, sort them, and have them automatically update if the related cells in Sheet 1 are updated.

It's probably my inability to word the search criteria with the correct syntax, but I couldn't find anything. Please help. Thanks!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
hi @DeGeorge

Can you insert an example picture or table to make it easier for someone to understand the desired achievement?
 
Upvote 0
Data on Sheet 1, columns A, B, C

Ticket# Table# Name
1 2 Joe
2 3 Pete
3
4
5 1 Harry


Desired results on Sheet 2, Column B and C, only if B isn't blank, then I want to be able to sort.

Table# Name
2 Joe
3 Pete
1 Harry


I've tried =FILTER(IF(Table1="","",Table1),Table1[Name]<>"") but it returns the whole table and I cannot sort.
 
Upvote 0
Try this


Excel Formula:
=LET(T,SORTBY($B$3:$C$7,B3:B7,1,C3:C7,1),FILTER(T,CHOOSECOLS(T,1)<>"",""))


1706580134285.png
 
Upvote 0
Possibly I'm not understanding the syntax, or my sample data is not sufficient. I cannot post real data and it's too complicated to make dummy values.

Table1 is the table/array/range on Sheet 1 from which I want to copy columns A, B, C, and G. And then be able to sort them by Column B.

I tried this...

=LET(Table1,SORTBY(Table1,Sheet1!A5:A234,1,Sheet1!B5:B234,1,Sheet1!C5:C234,1,Sheet1!G5:G234,1),FILTER(Table1,CHOOSECOLS(Table1,1)<>"",""))

It returned all of Table 1 from Sheet 1 on Sheet 2
 
Upvote 0
Try This


Excel Formula:
=LET(T,SORTBY(Sheet1!A5:G234,Sheet1!A5:A234,1,Sheet1!B5:B234,1,Sheet1!C5:C234,1,Sheet1!G5:G234,1),FILTER(T,CHOOSECOLS(T,2)<>"",""))
 
Upvote 0
Ahh i seeeee

Try this


Excel Formula:
=LET(T,CHOOSECOLS(SORTBY(Sheet1!A5:G234,Sheet1!A5:A234,1,Sheet1!B5:B234,1,Sheet1!C5:C234,1,Sheet1!G5:G234,1),1,2,3,7),FILTER(T,CHOOSECOLS(T,2)<>"",""))
 
Upvote 1
Solution

Forum statistics

Threads
1,224,827
Messages
6,181,198
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