Do you need to process several ranges of data at the same time in Google Sheets? Remembering their absolute or relative references can be tiresome as there is no way to easily identify a whole cell range. To help you handle this, Google Sheets has a feature called Named Ranges. These are shortcuts to specific ranges that you can define and use in your formulas. In this tutorial, you will learn how to create, use, and edit or delete named ranges in Google Sheets. Are you ready?
How to create named ranges
Step 1: Select the data range in your Google Sheet to be named or create a new range.
Step 2: Click the Data tab, then select Named ranges.
Step 3: The sidebar Named ranges appear on the right side of Google Sheets. A text box for the range name and the range will appear. The range of the selected cells will automatically be loaded in the Range box. To name the range, simply type a descriptive name of your choosing (preferably something simple) in the Name textbox, then click Done.
REMINDER: When creating named ranges in Google Sheets, remember that the name can contain only letters, numbers, and underscores.
The named range will be listed in the sidebar with all the ranges. If you will use these named ranges in Google Sheets frequently or create more as you add new data, it is best to keep the sidebar active.
How to use named ranges in formulas
Now that you can create named ranges in Google Sheets, let's discuss how to use them effectively in your spreadsheets.
Named ranges are designed to be used in Google Sheets formulas in place of cumbersome cell references that refer to absolute or relative references. All the formulas that accept cell ranges will accept named ranges. For example in the following function, we can simply use the name of the named range inside the SUM function to calculate the sum of all the values stored in the named range:
As you type the named range, the named range Population will appear in the drop-down list for autocompletion. You can either continue typing or simply press Tab or Enter to autocomplete.
The result will be the same as specifying the absolute reference:
How to use named ranges with ARRAYFORMULA
Named ranges work just as well when you want to use ARRAYFORMULA as a shortcut in applying a formula to an entire cell range. With the following formula, we want to divide individual entries in the range by 2. To do so, we simply need to use ARRAYFORMULA just like when the absolute or relative references are used:
The result is
You can learn more about ARRAYFORMULA here.
How to use named ranges with Google Apps script
If you are a regular user of Google Apps script in Google Sheets, you can use it to manage your named ranges. Using the commands below will allow you to incorporate named ranges in your scripts and create simpler scripts overall.
How to edit a named range
Step 1: On the Named ranges sidebar, click the pencil symbol, labeled Edit, on the listed named range.
Step 2: The textboxes will appear. You can either rename the named range by typing a new name in the Name textbox or delete it by clicking the Delete range icon on the right of the textbox.
If you want to rename the range, delete the existing name in the textbox and type the new one, then click Done. This will not break the formulas; they will be updated with the new name and will still work.
If you want to delete the named range, simply click Delete range. A prompt will appear reminding you that doing so will break the formulas that use the given named range. Click Remove if you are sure about your choice.
What are the Benefits of a Google Sheets Named Range?
Conveniently located in the Data menu, the named ranges option allows users to create cell references for specific cell ranges that they will often use. A named range in Google Sheets has several benefits, both for the user and anyone who reads the spreadsheet. The spreadsheet user can more easily remember and use the named ranges in Google Sheets than a complicated cell range reference, and anyone who reads the spreadsheet will find simple formulas that do not fill up the whole formula bar. Put simply, named ranges will turn your complex spreadsheets into simple, well-designed displays of your information.
-Absolute Reference in Google Sheets