We can find out the number of occurrences for each value using SUM and EXACT functions as well. You can use the Excel AutoFill feature as well. Write the formula for the rest of the values. Please keep in mind, from here on we will extract the values to separate locations using the Sort & Filter option before using any formula. Write the formula for the Salary column of our example. This COUNTIF formula can be used for number values as well. You need to use the criteria from this extracted column in order to get the occurrence number for each of the values. Now all the unique values from the column have been selected to a separate location. Make sure to check Unique records only and hit Enter or click OK. Select Copy to another location and insert the cell where you want to copy. There you will see the Advanced icon.Ĭlicking on the Advanced icon will lead you to the Advanced Filter dialog box. Select your desired column and explore the Data tab. To make our result from where we can derive the insides faster, we can take help from Excel Sort & Filter feature. This time it provided the correct values.īut think a little bit, whether this is in a format to fetch value in at the very first glance? No, this is neither providing the insides fast nor an eye pleasant form. So, we need to use Absolute Reference before exercising AutoFill. We didn’t use Absolute Reference, so our cell references kept changing and gave wrong output. It gave the number of occurrences for the name Max.Īs our data set is not a big one, you can have a quick look and find there are 4 ‘Max’ inside that Customer Name column.įor the rest of the values, you can use Excel AutoFill. So as criteria we have inserted a name (first name in this case, gradually will check using every other name) Our criteria were every name, since we need to calculate the number of instances for every name. Within the COUNTIF function, we inserted all the values of Customer Name as range. Let’s write the formula for counting the Customer Name in our example Excel workbook Range: The range of cells you want to countĬriteria: The criteria that control which cells should be counted.