Forum Discussion
NotSoFastEddie
Apr 29, 2024Brass Contributor
Filtering only certain columns of a row to another worksheet
I am using Filter to move a copy of the data from one worksheet to another, but want to remove certain columns. Filter does not seem to allow that kind of manipulation. Is this even possible. ...
- Apr 29, 2024
See the attached workbook. It demonstrates two solutions:
- Using a second FILTER function, with an array of 0s and 1s. For each column returned by the inner FILTER function, 0 means omit this column, 1 means include it.
- Using the CHOOSECOLS function. In this formula, you have to specify the index numbers of the columns you want to include.
HansVogelaar
Apr 29, 2024MVP
See the attached workbook. It demonstrates two solutions:
- Using a second FILTER function, with an array of 0s and 1s. For each column returned by the inner FILTER function, 0 means omit this column, 1 means include it.
- Using the CHOOSECOLS function. In this formula, you have to specify the index numbers of the columns you want to include.
mathetes
Apr 29, 2024Silver Contributor
Not only was I correct--there was a "more elegant solution"--you've shown there are at least TWO more elegant solutions. And have added to my repertoire.
- HansVogelaarApr 29, 2024MVP
I like your solution too, since it lets you specify the field names (column headers) to use.
As always, Excel has multiple ways to solve a problem.