Excel PERCENTOF Function Tutorial

Version: Microsoft 365
Last update:
Tip: Use ⬆️ ⬇️ to turn the page up and down. We recommend browsing with a large screen for a better reading experience.

1. How to calculate percentage share from a set of data?

This is the page view data for different language versions of Wikipedia, and we want to know the percentage share of each language. Data source: Wikipedia
How to calculate percentage share from a set of data?

2. Parameters of the PERCENTOF Function

Here is the syntax for using the PERCENTOF function.
=PERCENTOF(data_subset,data_all)
  • data_subset: required The values that in the data subset
  • data_all: required The values that make up the entire set.
  • 3. Getting Started with the PERCENTOF Function

    In the cell, enter =PERCENTOF(
    Getting Started with the PERCENTOF Function

    4. Select the cell to calculate the percentage

    Click on the cell you want to calculate the percentage for, here it is H6, and now the function becomes: _=PERCENTOF(H6
    Select the cell to calculate the percentage

    5. Select a range of cells to form the total

    Add a comma, then select a range of cells to form the total. Here, you can drag the mouse to select, or select the first row H6, then hold Shift + click the last row to select, now the function becomes: _=PERCENTOF(H6,H6:H20
    Select a range of cells to form the total

    6. Convert relative reference to absolute reference

    Select the relative reference H6:H20, then press F4, it will change to absolute reference: $H$6:$H$20
    Convert relative reference to absolute reference

    7. Press enter

    At this point, you will see the automatically generated percentage number: 0.523126077, which may not yet be in % format.
    Press enter

    8. Right-click to edit cell format

    Hover over the cell, right-click, and select Format Cells
    Right-click to edit cell format

    9. Set format

    Select Category as Percentage, click OK to save.
    Set format

    10. Get the percentage

    Now we can see the percentage.
    Get the percentage

    11. Complete the task

    Extend the format of the current cell to the other cells below to get the data we want.
    Complete the task

    12. 🎉 Finish! 🎉

    Author's Note: I hope you can feel the effort I put into these tutorials. I hope to create a series of very easy-to-understand Excel tutorials.

    If it is useful, help me share these tutorials, thank you!


    Follow me:
    How to calculate percentage share from a set of data?