

With the formula version the numbers update automatically if you've used a dynamic data range ( = select a single cell from your data and press Ctrl + T to turn it into a table ). If you are creating a chart and the data is not in rows or columns next to each other you will need to use a different method to select the data. The pivot table solution is super easy but if the values change you're going to have to refresh the pivot table to get the new values. The COUNTIF formula gives you the numeric values. Similarly, you can create another chart by choosing the next columns data (that is ruler), along with the first column data. In Excel 365 there's the UNIQUE function as well but with older versions you're going to have to enter the unique values manually.

From the Insert tab, go to the Charts command group and click the Insert Pie or Doughnut Chart icon. The pivot table is by far the easiest way to get all the unique values. Step 2 - Insert the type of pie chart you want. The same thing can be done without pivot tables as well but you're going to have to create the two columns yourself. You'll end up with two columns which you can visualize in a chart. Pivot table puts the text values to the row labels but when you drag the same column to the values field as well the pivot table counts the number of values. That being said you can however create a pivot table from your text column. I don't think you can create a chart using text values alone.
