1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Using CHOOSECOLS + FILTER to return only specific columns

Our take

Unlock the potential of your data with a simple yet powerful dynamic array trick using CHOOSECOLS and FILTER. Imagine you have a table, TableData, featuring columns such as ID, Name, Department, Location, and Salary. By filtering on Department and Location, you can easily return just the Name and Salary columns with the formula: =CHOOSECOLS(FILTER(TableData, (TableData[Department]=G1) * (TableData[Location]=G2)), 2, 5). This approach not only streamlines your data analysis but also enhances accessibility. Are you exploring

Hi all,Sharing a small dynamic-array trick using CHOOSECOLS + FILTER.Say you have a table TableData with columns: ID, Name, Department, Location, Salary.You can filter by Department and Location, and return only Name and Salary like this: =CHOOSECOLS( FILTER( TableData, (TableData[Department]=G1) * (TableData[Location]=G2) ), 2, 5 ) G1 = Department, G2 = Location, and 2, 5 are the column numbers (Name, Salary) in the filtered spill.Anyone else using CHOOSECOLS in interesting ways?Do you want me to also add a tiny data example in the post so it’s clearer for people replying?

submitted by /u/Amolk505
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Related Articles