To count the number of occurrences of a specific value in a range using the COUNTIF function in Excel, you can follow these steps:
Open your Excel spreadsheet and select the cell where you want the count result to be displayed.
Type the COUNTIF function in the selected cell using the following syntax: =COUNTIF(range, criteria)
For example, if you want to count the number of occurrences of the value "Apple" in cells A1 to A10, you would use the formula: =COUNTIF(A1:A10,"Apple")
Press Enter to get the count result.
The cell will now display the number of occurrences of the specific value in the given range.