
=SUMIF(range, criteria, sum_range) / total In this case, you can use the SUMIF function to add up all numbers relating to a given product first, and then divide that number by the total, like this: In the above example, suppose you have several rows for the same product and you want to know what part of the total is made by all orders of that particular product. The screenshot below demonstrates the results returned by the formula, the Percentages of Total column is formatted as percentage with 2 decimal places showing.Įxample 2. To make the denominator an absolute reference, either type the dollar sign ($) manually or click the cell reference in the formula bar and press F4. But you enter $B$10 as an absolute cell reference because you want to leave the denominator fixed on B10 when auto-filling the formula down to row 9. You use a relative cell reference to cell B2 because you want it to get changed when you copy the formula to other cells of column B. In this case, the percentage formula will be similar to the one we've just discussed with the only difference that a cell reference in the denominator is an absolute reference (with $).The dollar sign fixes the reference to a given cell, so that it never changes no matter where the formula is copied.įor example, if you have some values in column B and their total in cell B10, you'd use the following formula to calculate percentages of the total: The total is at the end of the table in a certain cellĪ very common scenario is when you have a total in a single cell at the end of a table.


Now, let's investigate a few more examples that will help you make quick work of calculating a percent of a total in Excel on different data sets. In fact, the above example is a particular case of calculating percentages of a total. In the following example, column D displays a rounded percent of delivered items, without any decimal places showing. The same sequence of steps shall be performed when using any other percentage formula in Excel. Remember to increase the number of decimal places if needed, as explained in Percentage tips.Click the Percent Style button ( Home tab > Number group) to display the resulting decimal fractions as percentages.

Enter the formula =C2/B2 in cell D2, and copy it down to as many rows as you need.To find out the percentage of delivered products, perform the following steps: Suppose, you have the number of " Ordered items" in column B and " Delivered items" in column C. When calculating a percent in Excel, you do not have to multiply the resulting fraction by 100 since Excel does this automatically when the Percentage format is applied to a cell.Īnd now, let's see how you can use the Excel percentage formula on real-life data. If you compare it to the basic math formula for percentage, you will notice that Excel's percentage formula lacks the *100 part.
