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.
| Order | Region | Product | Units | Revenue | Cost |
|---|---|---|---|---|---|
| O-101 | North | Keyboard | 12 | 720 | 420 |
| O-102 | South | Mouse | 18 | 450 | 198 |
| O-103 | North | Monitor | 5 | 1250 | 900 |
| O-104 | West | Keyboard | 8 | 480 | 280 |
| O-105 | South | Monitor | 4 | 1000 | 720 |
| O-106 | North | Mouse | 20 | 500 | 220 |
| O-107 | West | Monitor | 6 | 1500 | 1080 |
| O-108 | East | Dock | 10 | 600 | 350 |
Hints to get you started
- A single-row include array filters columns.
- Compare each header with "Cost" using <>.
- 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 →