Skip to main content
Workday User Guide
Last Updated: 2023-06-23
REMOVECOLUMNS

REMOVECOLUMNS

Description

Removes one or more columns from the sheet. The function removes the
number_of_columns
, starting at and including
start_column
.

Syntax

REMOVECOLUMNS(
[range]
,
[number_of_columns]
,
[start_column]
)
  • range
    : The matrix to remove columns from.
  • number_of_columns
    : The number of columns to remove. Use a value greater than 0 to remove
    start_column
    and subsequent columns. Use a value less than 0 to remove
    start_column
    and previous columns.
  • start_column
    : The starting column to remove. You can set
    start_column
    to -1 to start removing columns from the right side of the matrix instead of the left.

Example

The examples are based on this workbook:
A
B
C
D
E
1
Item
2014
2015
2016
2017
2
100
6452
6557
6772
6457
3
200
3458
3568
4668
3455
4
300
6791
6552
5382
6235
5
400
3524
6592
3562
3899
6
500
6458
3112
2855
3298
The result of
=REMOVECOLUMNS(A1:E6,3,2)
is shown in this table:
Item
2017
100
6457
200
3455
300
6235
400
3899
500
3298
The result of
=REMOVECOLUMNS(A1:E6,-4,-1)
is shown in this table:
Item
100
200
300
400
500

Notes

  • In the results, formatting from the original cells is not preserved.
  • This function is intended for use in array formulas.

Related Functions

MERGECOLUMNS