Skip to main content

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

Author: Sun Last Modified: 2025-08-06

視頻:計算百分比


取得總數的百分比

 

範例 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

最佳 Office 辦公效率工具

🤖 Kutools AI Aide:徹底革新數據分析,基於智能執行|生成程式碼|創建自訂公式|分析數據並生成圖表|調用 Kutools Functions
熱門功能查找、選取項目的背景色或標記重複值 | 刪除空行 | 合併列或單元格且不丟失資料 | 四捨五入...
高級 LOOKUP多條件查找|多值查找|多表查找|模糊查找...
高級下拉列表快速創建下拉列表 | 關聯下拉列表 | 多選下拉列表 ...
列管理器添加指定數量的列 | 移動列 | 切換隱藏列的可見狀態 | 區域與列比較 ...
精選功能網格聚焦 | 設計檢視 | 增強編輯欄 | 工作簿及工作表管理器 | 資源庫 (自動文本) | 日期提取器 | 合併資料 | 加密/解密儲存格 | 按清單發送電子郵件 | 超級篩選 | 特殊篩選(篩選粗體/傾斜/刪除線 ...)...
前15 大工具集12 款文本工具添加文本刪除特定字符,...)|50+ 種圖表 類型甘特圖,...)|40+ 實用 公式基於生日計算年齡,...)|19 款插入工具插入QR码按路徑插入圖片,...)|12 款轉換工具金額轉大寫匯率轉換,...)|7 款合併和分割工具高級合併行分割儲存格,...)| ...以及更多
使用 Kutools 支援你的語言——支援英語、西班牙語、德語、法語、中文及40 多種語言!

利用 Kutools for Excel 大幅提升你的 Excel 技能,感受前所未有的高效體驗。 Kutools for Excel 提供超過300 項高級功能,助你提升效率並保存時間。 點此查看你最需要的功能...


Office Tab 為 Office 帶來標籤式介面,讓你的工作更加輕鬆

  • 啟用 Word、Excel、PowerPoint 的標籤式編輯和閱讀功能
  • 在同一個視窗的標籤中打開和創建多個文件,而不是在新窗口中分開開啟。
  • 可提升你50% 的工作效率,每天為你大量減少滑鼠點擊次數!
{# article_7338_afterDisplayContent #}