Here we need to select the entire frequency column then only the frequency function will work properly, or else we will get an error value.
Now using the frequency function, we will group the data by following the below steps. Now in order to calculate frequency, we have to group the data with students marks, as shown below.