Range in Excel
Range in Excel
You can perform many operations with ranges in your Excel worksheet,
unlike copying the dataset, moving data from one position to another,
formatting cells, and even you can name your range. In this tutorial, we
will briefly cover all the topics about ranges.
Types of Ranges
1. Vertical Range
2. Horizontal Range
3. Mixed Range
To add a named range in your Excel worksheet, follow the below steps:
1. Select the range of cells for which you want to define the name.
2. Go to the ribbon toolbar located at the top of your Excel window. Click
on the Formulas tab -> Defined Names group -> Define Name
option.
3. The New Name window will open (as shown below). In the
descriptive name textbox, enter any suitable name for the range. In
our case, we have entered Student_Marks as the name for the selected
range.
4. After specifying the name, it's time to specify the range of cells
from which you want to apply the name; therefore, in the "Refers to"
box, select the range from your Excel worksheet.
5. Once done, click on the OK button.
6. The window will be closed, and when you return to the spreadsheet,
you will notice the name Students_Marks is highlighted in the Name
box for the selected range of cells (as shown in the image below).
Note: If you have named any range, you will see the range name in the Name box
whenever you select that column.
7. Now that we have defined the range's name, we can directly use the
name Student_Marks in formulas to refer to the named range of cells. For
example, type the below formula in your excel worksheet.
Formula used:
=SUM(Student_Marks)
8. The SUM formula will quickly calculate the sum of all
numbers present in a defined range and will give you the following result.
Result: 55