Skip to main content

Kutools for Office — 一套工具,五種功能。完成更多工作。

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

Author Sun Last modified

視頻:計算百分比


取得總數的百分比

 

範例 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 助手:以智能執行為基礎,革新數據分析 生成程式碼 創建自訂公式 分析數據並生成圖表 調用 Kutools 增強函數
熱門功能查找、選取項目的背景色或標記重複值刪除空行合併列或單元格且不遺失數據四捨五入(免公式)...
高級 LOOKUP多條件 VLookup多值 VLookup多表查找模糊查找...
高級下拉列表快速創建下拉列表 依賴型下拉列表 多選下拉列表...
列管理器添加指定數量的列移動列切換隱藏列的顯示狀態比較區域及列...
精選功能網格聚焦 設計檢視 增強編輯欄 工作簿及工作表管理器 資源庫(快捷文本) 日期提取器 合併資料 加密/解密儲存格 按列表發送電子郵件 超級篩選 特殊篩選(篩選粗體/傾斜/刪除線...)...
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%,每日可幫您減少數百次鼠標點擊!

所有 Kutools 外掛,一次安裝

Kutools for Office 套裝整合了 Excel、Word、Outlook 和 PowerPoint 的外掛,外加 Office Tab Pro,非常適合需要跨 Office 應用程式協同作業的團隊。

Excel Word Outlook Tabs PowerPoint
  • 全合一套裝 — Excel、Word、Outlook及 PowerPoint 外掛 + Office Tab Pro
  • 一鍵安裝,一份授權 — 幾分鐘完成設置(支援 MSI)
  • 協同運作更順暢 — Office 應用間無縫提升生產力
  • 30 天全功能試用 — 無需註冊、無需信用卡
  • 最超值 — 一次購買,節省單獨外掛費用