Skip to main content

在 Excel 中計算百分比 – 使用 7 個公式範例

Author: Sun Last Modified: 2025-05-12

視頻:計算百分比


取得總數的百分比

 

範例 1:取得給定總數的百分比

例如,您在 B 列(B2:B4)中有一些值,而這些值的總數在 B5 單元格中,如下圖所示:

A screenshot showing a dataset in Excel with values in column B and their total in cell B5

現在您想取得每個值佔總數的百分比,請按照以下步驟操作:

步驟 1:使用公式取得每個值佔總數的百分比

1. 選擇一個空白單元格,這裡是 C2,輸入以下公式,然後按下 Enter 鍵以獲得第一個百分比:

=B2/$B$5
注意:要使分母成為絕對引用,可以手動輸入美元符號($),或者在公式欄中點擊單元格引用並按下 F4 鍵。

A screenshot demonstrating the formula used to calculate percentages in Excel

2. 然後雙擊自動填充控制柄(公式結果單元格右下角的小綠色方塊)以將公式填充到下方的單元格中。

A screenshot showing how to use the auto fill handle to apply formulas in Excel

步驟 2:將結果格式化為百分比

選擇結果單元格,然後點擊「Home 」標籤,進入「Number 」群組,選擇「Percentage Style」。(或者您可以使用快捷鍵 Shift + Ctrl + % 將單元格格式化為百分比。)

A screenshot showing the Percentage Style option in the Home tab of Excel

現在結果已顯示為百分比格式。

A screenshot showing results formatted as percentages in Excel

注意:您可以通過點擊「Increase Decimal」來更改小數位數 An icon showing the Increase Decimal button in Excel 或「Decrease Decimal」 An icon showing the Decrease Decimal button in Excel 在「Home」標籤下的「Number」群組中。

範例 2:取得未知總數的百分比

例如,有一張包含學生分數的表格。現在您想取得每個總數中分數 1 的百分比:

A screenshot showing a table with student scores to calculate percentage values

步驟 1:使用公式取得每個值佔總數的百分比

1. 選擇一個空白單元格,這裡是 D8,輸入以下公式,然後按下 Enter 鍵以獲得第一個百分比:

=B8/SUM(B8:C8)
注意: SUM 函數用於獲取數字的總和。SUM(B8:C8) 獲得 Lisa 的總分。

A screenshot demonstrating the formula to calculate percentage using SUM in Excel

2. 然後雙擊自動填充控制柄(公式結果單元格右下角的小綠色方塊)以將公式填充到下方的單元格中。

A screenshot showing how to use the auto fill handle for formulas in Excel

步驟 2:將結果格式化為百分比

選擇結果單元格,然後點擊「Home 」標籤,進入「Number 」群組,選擇「Percentage Style」。(或者您可以使用快捷鍵 Shift + Ctrl + % 將單元格格式化為百分比。)

A screenshot showing the Percentage Style option in the Home tab of Excel

現在結果已顯示為百分比格式。

A screenshot showing results formatted as percentages in Excel

注意:您可以通過點擊「Increase Decimal」來更改小數位數 An icon showing the Increase Decimal button in Excel 或「Decrease Decimal」 An icon showing the Decrease Decimal button in Excel 在「Home」標籤下的「Number」群組中。

取得兩個數字之間變化的百分比

 

假設公司 A 在 2022 年的收入為 $3,000,000,而在 2021 年的收入為 $2,680,000,這兩年之間的變化百分比是多少?您可以用新收入(2022 年)減去原始收入(2021 年),然後將結果除以原始收入(2021 年)來計算差異。

A screenshot showing income data of company A for 2021 and 2022 in Excel

步驟 1:使用公式取得每個值佔總數的百分比

選擇一個空白單元格,這裡是 C9,輸入以下公式,然後按下 Enter 鍵以獲得變化百分比:

=(B9-A9)/A9
注意:括號中的運算會先進行計算。單元格 A9 包含較舊的價格(2021 年),單元格 B9 包含較新的價格(2022 年)。

A screenshot demonstrating the formula for calculating percentage change in Excel

如果您想將此公式應用於下方的單元格,請雙擊自動填充控制柄(公式結果單元格右下角的小綠色方塊)以填充。

步驟 2:將結果格式化為百分比

選擇結果單元格,然後點擊「Home 」標籤,進入「Number 」群組,選擇「Percentage Style」。(或者您可以使用快捷鍵 Shift + Ctrl + % 將單元格格式化為百分比。)

A screenshot showing the Percentage Style option in the Home tab of Excel

現在結果已顯示為百分比格式。

A screenshot showing results formatted as percentages in Excel

注意事項:
  1. 如果差異結果為正數,則表示最後的值相比第一個值有所增加。如果結果為負數,則表示最後的值相比第一個值有所減少。

  2. 您可以通過點擊「Increase Decimal」來更改小數位數 An icon showing the Increase Decimal button in Excel 或「Decrease Decimal」 An icon showing the Decrease Decimal button in Excel 在「Home」標籤下的「Number」群組中。

  3. 在公式中,如果除數(較舊的值)為零或空白,公式將返回 #DIV/0!錯誤值。為避免這種情況,您可以使用公式:

    =IF(A9=0,1,(B9-A9)/A9)

    然後結果返回為 100%。

    A screenshot showing the modified formula handling zero or blank values for percentage calculation in Excel

  4. 如果您不想將結果格式化為百分比,可以將結果乘以 100:

    A screenshot showing the result of percentage change without formatting in Excel


按百分比增加或減少數字

 

範例 1:按百分比增加數字

假設您去年的年薪為 $320,000,您的公司決定今年將您的年薪提高 20%,那麼您今年將賺多少?

A screenshot showing the annual salary data for calculating a salary increase by percentage in Excel

選擇一個空白單元格,這裡是 C17,輸入以下公式,然後按下 Enter 鍵:

=A17*(1+B17)
注意:括號中的運算會先進行計算。單元格 A17 包含原始數字,單元格 B17 包含增加的百分比。

A screenshot demonstrating the formula to calculate an increased salary by percentage in Excel

範例 2:按百分比減少數字

假設經理希望將每月 $10,000 的廣告成本減少 25%,那麼新的月度廣告成本將是多少?

A screenshot showing the original advertising cost data for calculating a decrease by percentage in Excel

選擇一個空白單元格,這裡是 C21,輸入以下公式,然後按下 Enter 鍵:

=A21*(1-B21)
注意:括號中的運算會先進行計算。單元格 A21 包含原始數字,單元格 B21 包含減少的百分比。

A screenshot demonstrating the formula to calculate a decreased advertising cost by percentage in Excel


根據給定的金額和百分比取得總數

 

假設一台筆記型電腦的售價為 $120,這是原價的 20% 折扣。問題是這台筆記型電腦的原價是多少?

A screenshot showing the sale price and discount percentage data for calculating the original price of a laptop in Excel

選擇一個空白單元格,這裡是 G9,輸入以下公式,然後按下 Enter 鍵以獲得總數:

=E9/(1-F9)
注意:括號中的運算會先進行計算。單元格 E9 包含售價,單元格 F9 包含折扣百分比。

A screenshot demonstrating the formula to calculate the original price from the sale price and discount percentage in Excel


根據給定的總數和百分比取得金額

 

如果一件外套的原價為 $110,但您需要支付額外 12% 的銷售稅,那麼您需要支付多少銷售稅?

A screenshot showing the original price of a coat and the sales tax percentage for calculation in Excel

選擇一個空白單元格,這裡是 C13,輸入以下公式,然後按下 Enter 鍵:

=A13*B13
注意:單元格 A13 包含價格,單元格 B13 包含稅率百分比。

A screenshot demonstrating the formula to calculate sales tax based on a percentage in Excel

最佳辦公效率工具

🤖 Kutools AI 助手:基於智能執行方式革新數據分析:智能執行   |  生成代碼  |  創建自訂公式  |  分析數據並生成圖表  |  調用 Kutools 函數
熱門功能查找、標記重複值或識別重複項   |  刪除空行   |  合併列或單元格而不丟失數據   |   四捨五入無需公式 ...
高級 LOOKUP多條件 VLookup    多值 VLookup  |   多表查找   |   模糊查找 ....
高級下拉列表快速創建下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
列管理器添加特定數量的列  |  移動列  |  切換隱藏列的可見狀態  |  比較區域和列 ...
特色功能網格聚焦   |  設計檢視   |   增強編輯欄    工作簿與工作表管理器   |  資源庫(自動文本)   |  日期提取器   |  合併資料   |  加密/解密儲存格    按列表發送電子郵件   |  超級篩選   |   特殊篩選(篩選粗體/斜體/刪除線...) ...
頂級 15 種工具集12 個文本工具添加文本刪除特定字符、...)   |   50+ 圖表 類型甘特圖、...)   |   40+ 實用 公式基於生日計算年齡、...)   |   19 個插入工具插入QR碼根據路徑插入圖片、...)   |   12 個轉換工具金額轉大寫匯率轉換、...)   |   7 個合併與分割工具高級合併行分割儲存格、...)   |   ... 還有更多

使用 Kutools for Excel 提升您的 Excel 技巧,體驗前所未有的高效。 Kutools for Excel 提供超過 300 種高級功能來提高生產力並節省時間。  點擊這裡獲取您最需要的功能...


Office Tab 將標籤式界面帶到 Office,讓您的工作更加輕鬆

  • 在 Word、Excel、PowerPoint、Publisher、Access、Visio 和 Project 中啟用標籤式編輯和閱讀。
  • 在同一窗口的新標籤中打開和創建多個文檔,而不是在新窗口中。
  • 將您的生產力提高 50%,每天為您減少數百次鼠標點擊!