Is it possible to add blank columns in Choosecols return

btardo01

Board Regular
Joined
Oct 6, 2009
Messages
169
Office Version
  1. 2016
Platform
  1. Windows
Can I use the choosecols function and bring in column 2, then leave a blank column, then bring in column 11, then 2 blank columns, and the bring in column 21 and 15?

=CHOOSECOLS(FILTER('EPM Report'!A:S,('EPM Report'!P:P<>0)),2," ",11," "," ",21,15),2,1)
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
If you expand the array to include a blank column at the end of the range, you could use it like this:

Book1
ABCDEFGHIJKLMNOPQRSTU
1HDR1HDR2HDR3HDR4HDR5HDR6HDR7HDR8HDR9HDR10HDR11HDR12HDR13HDR14HDR15HDR16HDR17HDR18HDR19HDR20HDR21
2Col: 1Col: 2Col: 3Col: 4Col: 5Col: 6Col: 7Col: 8Col: 9Col: 10Col: 11Col: 12Col: 13Col: 14Col: 151Col: 17Col: 18Col: 19Col: 20Col: 21
3Col: 1Col: 2Col: 3Col: 4Col: 5Col: 6Col: 7Col: 8Col: 9Col: 10Col: 11Col: 12Col: 13Col: 14Col: 152Col: 17Col: 18Col: 19Col: 20Col: 21
4Col: 1Col: 2Col: 3Col: 4Col: 5Col: 6Col: 7Col: 8Col: 9Col: 10Col: 11Col: 12Col: 13Col: 14Col: 153Col: 17Col: 18Col: 19Col: 20Col: 21
5Col: 1Col: 2Col: 3Col: 4Col: 5Col: 6Col: 7Col: 8Col: 9Col: 10Col: 11Col: 12Col: 13Col: 14Col: 150Col: 17Col: 18Col: 19Col: 20Col: 21
6Col: 1Col: 2Col: 3Col: 4Col: 5Col: 6Col: 7Col: 8Col: 9Col: 10Col: 11Col: 12Col: 13Col: 14Col: 151Col: 17Col: 18Col: 19Col: 20Col: 21
7Col: 1Col: 2Col: 3Col: 4Col: 5Col: 6Col: 7Col: 8Col: 9Col: 10Col: 11Col: 12Col: 13Col: 14Col: 152Col: 17Col: 18Col: 19Col: 20Col: 21
8Col: 1Col: 2Col: 3Col: 4Col: 5Col: 6Col: 7Col: 8Col: 9Col: 10Col: 11Col: 12Col: 13Col: 14Col: 153Col: 17Col: 18Col: 19Col: 20Col: 21
9Col: 1Col: 2Col: 3Col: 4Col: 5Col: 6Col: 7Col: 8Col: 9Col: 10Col: 11Col: 12Col: 13Col: 14Col: 15Col: 17Col: 18Col: 19Col: 20Col: 21
10Col: 1Col: 2Col: 3Col: 4Col: 5Col: 6Col: 7Col: 8Col: 9Col: 10Col: 11Col: 12Col: 13Col: 14Col: 151Col: 17Col: 18Col: 19Col: 20Col: 21
11Col: 1Col: 2Col: 3Col: 4Col: 5Col: 6Col: 7Col: 8Col: 9Col: 10Col: 11Col: 12Col: 13Col: 14Col: 152Col: 17Col: 18Col: 19Col: 20Col: 21
12Col: 1Col: 2Col: 3Col: 4Col: 5Col: 6Col: 7Col: 8Col: 9Col: 10Col: 11Col: 12Col: 13Col: 14Col: 153Col: 17Col: 18Col: 19Col: 20Col: 21
EPM Report


Book1
ABCDEFG
1HDR1HDR2HDR3HDR4HDR5HDR6HDR7
2HDR2HDR11HDR21HDR15
3Col: 2Col: 11Col: 21Col: 15
4Col: 2Col: 11Col: 21Col: 15
5Col: 2Col: 11Col: 21Col: 15
6Col: 2Col: 11Col: 21Col: 15
7Col: 2Col: 11Col: 21Col: 15
8Col: 2Col: 11Col: 21Col: 15
9Col: 2Col: 11Col: 21Col: 15
10Col: 2Col: 11Col: 21Col: 15
11Col: 2Col: 11Col: 21Col: 15
12
Sheet2
Cell Formulas
RangeFormula
A2:G11A2=CHOOSECOLS(FILTER('EPM Report'!A:V,'EPM Report'!P:P<>0),2,22,11,22,22,21,15)&""
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,150
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