Named Ranges 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.
Do you need to process several ranges of data at the same time? Remembering their absolute or relative references can be tiresome as there is no way to easily identify them. To help you handle them, 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. Are you ready?
Step 1: Select the range to be named.
Step 2: Click Data, then select Named ranges.
Step 3: The sidebar Named ranges appear on the right side of Google Sheets. A textbox for the name and the range will appear. The range of the selected cells will automatically be loaded in the Range textbox. To name the range, simply type a name of your choosing (preferably something simple) in the Name textbox, then click Done.
The named range will be listed in the sidebar. If you will use these named ranges frequently, it is best to keep the sidebar active.
Named ranges are designed to be used in formulas instead of referring to absolute or relative references. For example, to calculate the sum of all the values stored in the named range, we can simply use the name inside the SUM function:
=SUM(Population)
As you type the named range, the named range Population will appear in the drop-down box 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:
Named ranges work just as well when you want to use ARRAYFORMULA as a shortcut in applying a formula to an entire range. For our example, 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:
=ARRAYFORMULA(Population/2)
The result is
You can learn more about ARRAYFORMULA here.
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.