Hi @Ranh
You want create a new table filtered or filtered and sorted? Why not use filter, sort, copy, paste?
Assuming you want dynamically filter to a new table in a new sheet, and assuming your first table is Table_A with (Name, Gender, Age) in Sheet1
You can use the following formula in Sheet2 Table_B with(Row_Id, Name, Gender, Age) to get the rows you want transfer ($G$2 has the Filter for Gender).
Formula:
=IFERROR(AGGREGATE(15,6,1/((Table_A[Gender]=$G$2)/(ROW(Table_A[Name])-ROW(Table_B[#Headers]))),ROWS($A$1:$A1)),"")
Now, you can use INDEX to fill the rest of Table_B as (to get column Name
Formula:
=IFERROR(INDEX(Table_A,[@[ID_Row]],COLUMN([Name])-1),"")
See the sample file
Bookmarks