跳到主要內容

在Excel中根據字體,背景或條件顏色快速計算單元格值

Excel的Kutools

提升 Excel 300+
強大的功能

有許多公式可以在Excel中執行數據計算。 但是,如果您要根據單元格的填充或背景顏色或字體顏色對單元格進行計數或求和,並根據指定的背景,字體,條件格式顏色對單元格範圍進行其他計算,則沒有這樣的公式在Excel中。 但 Excel的Kutools's 按顏色計數 實用程序可以根據單元格顏色快速將計算應用於單元格,並在新工作簿中生成報告。

根據單元格顏色將計算應用於單元格並在新工作簿中生成報告

將計數/總和計算基於Excel中的字體顏色應用於單元格


點擊 Kutools 加 >> 按顏色計數。 查看屏幕截圖:

射擊高級排序1 1

根據單元格顏色將計算應用於單元格並在新工作簿中生成報告

假設您有一個工作表,其中包含一個單元格範圍,如下面的屏幕快照所示,並且您想要根據其背景或陰影顏色將計算(計數,總和等)應用於該範圍。 您可以按照以下步驟進行操作。

1.請根據背景/陰影顏色選擇要應用計算的範圍,然後應用 按顏色計數 實用程序(點擊 Kutools 加 > 按顏色計數).

2.在開幕 按顏色計數 對話,

(1)點擊 上色方式 框,然後從下拉列表中指定選項之一;

(2)點擊 計數類型 框並指定 背景 從下拉列表中。

A: 計數:它將計算在該範圍內具有特定單元格顏色的單元格數。

B: 總和:它將添加具有該範圍內特定單元格顏色的單元格中的所有數字。

C: 中等:它將返回該範圍內具有特定單元格顏色的單元格的平均值。

D: Max:顯示該範圍內具有特定單元格顏色的單元格的最大值。

E: Min:顯示該範圍內具有特定單元格顏色的單元格的最小值。

提示:

下拉列表中有三個選項 上色方式:標準格式,條件格式以及標準和條件格式。

如果您需要通過填充/背景色計算格式為 首頁 > 填充顏色, 請選擇 標準格式; 如果您需要通過填充/背景色計算通過條件格式設置格式的單元格,請選擇 條件格式; 如果按填充/背景色計算所有單元格,請選擇 標準和條件格式.

3.如果要在新工作簿中生成報告,請單擊 生成報告 按鈕。 您將在新工作簿中看到該報告,如下所示:


將計數/總和計算基於Excel中的字體顏色應用於單元格

例如,您有一系列用不同字體顏色設置格式的單元格,如下面的屏幕截圖所示,並且您想通過其字體顏色來計算(計數,求和,平均值或其他)單元格,則可以應用 按顏色計數 實用程序如下:

1.選擇根據字體顏色計算單元格的範圍,然後應用 按顏色計數 實用程序(點擊 Kutools 加 > 按顏色計數).

2.在開幕 按顏色計數 對話框:

(1)點擊 上色方式 框,然後根據需要從下拉列表中指定一個選項,例如 標準和條件格式;

(2)點擊 計數類型 框,然後指定 字體 從下拉列表中。

3.如果要在新工作簿中生成報告,請單擊 生成報告 按鈕。 然後,您將在新工作簿中看到該報告,如下圖所示:


筆記:

1.此實用程序將根據單元格顏色將計算應用於包含數值的單元格,但 計數 計算。

2.條件格式設置顏色可以在Excel 2010和更高版本中應用。 在Excel 2007中,您只能使用標準格式應用字體和背景顏色,請參見屏幕截圖:


演示:在Excel中根據字體,背景或條件顏色快速計算單元格值

Excel的Kutools:擁有300多個便捷的Excel實用工具,可以在60天之內免費試用,沒有限制。 立即下載並免費試用!


生產力工具推薦
以下工具可以極大地節省您的時間和金錢,哪一種適合您?
Office Tab: 在辦公室中使用方便的選項卡,作為Chrome,Firefox和New Internet Explorer的方式。
Excel的Kutools: 超過300種Excel高級功能 2021、2019、2016、2013、2010、2007 和 Office 365。

Excel的Kutools

上述功能只是Kutools for Excel的300個強大功能之一。

專為 Excel(Office) 2021、2019、2016、2013、2010、2007 和 Office 365 設計。免費下載和使用 30 天。

Kutools for Excel的屏幕截圖

btn了解更多      btn下載     btn購買

Comments (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Dear sir/madam Thanks for your above. kindly suggest how to get avg, max, min values. Thanks & Regards Sankar
This comment was minimized by the moderator on the site
Same problem here as Dean. Tested in new workbook (Excel 2010) and is not working properly. Please fix in next update.
This comment was minimized by the moderator on the site
The count by color is not working for my data table. It is working for a two row & tow column only. It is not calculating the entire data table results
This comment was minimized by the moderator on the site
[quote]The count by color is not working for my data table. It is working for a two row & tow column only. It is not calculating the entire data table resultsBy Dean[/quote] We will enhance this feature in upcoming versions. It cannot calculate the conditional formatting colors right now. It cannot process the table data right now.
This comment was minimized by the moderator on the site
count by color is not working. It sais "calculating"and then nothing hapens - the report is not displayed.
This comment was minimized by the moderator on the site
[quote]count by color is not working. It sais "calculating"and then nothing hapens - the report is not displayed.By iustin[/quote] In one worksheet I have a range with A2:A15 with only numbers and colors. An empty result is shown. On another range I get a result. I have a pretty big sheet with the same things and I want to use Kutools, but now very hesitating on buying it.
This comment was minimized by the moderator on the site
Hello, please try to contact me . Please try to apply the same operations to another workbook.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations