OS_CHOOSECOLS: Select Columns by Header in Google Sheets

Introduction

The built-in CHOOSECOLS formula in Google Sheets can be cumbersome when dealing with large datasets, as it requires selecting columns by number. OS_CHOOSECOLS simplifies this process by allowing you to select columns using their headers instead. If this functionality is what you're looking for, you've found the right solution.

Installation

Install from Google Workspace Marketplace

YouTube

If you're more of a visual learner, watch this video for step-by-step instructions. While you're there, consider subscribing to my channel for future updates and content.

To be updated.

Demo Use Case

From a sample dataset in A1:D10 containing "SKU," "Description," "Price," and "Sales" columns, we can extract a specific data slice using the OS_CHOOSECOLS formula. For instance, by selecting "SKU" and "Price," we can create a customized view of the dataset.

Example

OS_CHOOSECOLS(A1:D10, "SKU")

About

Creates a new array from the selected columns in the existing range.


array

The array that contains the columns to be returned.

[header1,...]

The headers of the columns to be returned.

OneScript Functions

Links

Hire Me on Upwork Donate YouTube Github Twitter / X Instagram Upwork Projects

Comments