cellcraftEnter the quest map →
← Browse the curriculum
DYNAMIC ARRAYS · ORIGINAL EXERCISE

Hide the cost column

Return A2:F9 with every column except the one whose header in A1:F1 is "Cost". Use FILTER with a horizontal include test.

This quest practices FILTER columns using a fictional business dataset. Read the sheet below, then enter the interactive quest to write and check your formula.

OrderRegionProductUnitsRevenueCost
O-101NorthKeyboard12720420
O-102SouthMouse18450198
O-103NorthMonitor51250900
O-104WestKeyboard8480280
O-105SouthMonitor41000720
O-106NorthMouse20500220
O-107WestMonitor615001080
O-108EastDock10600350
Play this quest · +70 XP →

Hints to get you started

  1. A single-row include array filters columns.
  2. Compare each header with "Cost" using <>.
  3. The data array is A2:F9; the header test uses A1:F1.
Show the worked solution
=FILTER(A2:F9,A1:F1<>"Cost")

FILTER can select rows or columns. The include array must match the height or width of the data in the corresponding orientation.

Make the skill stick

After solving the task, explain what each reference does and why the formula answers the business question. Try the workbook download inside the quest to practice in your own spreadsheet app.

Explore the rest of this region →