跳到主要內容

如何在Excel中計算帶有文本或數字的單元格數量?

例如,您有一個包含文本和數字的工作表,並且想要分別計算文本和數字的單元格總數,您會怎麼做? 在Excel中,可以使用公式來實現。 請瀏覽本教程以獲取更多詳細信息。

用公式計算帶有文本的單元格數

用公式計算單元格數


在Excel中計算並選擇具有特定文本或數字的單元格:

Excel的Kutools's 選擇特定的單元格 實用程序可以快速計數並選擇包含範圍內某些文本或數字的特定單元格。立即下載Kutools for Excel的全功能60天免費試用版!

Excel的Kutools:具有200多個方便的Excel加載項,可以在60天內免費試用,沒有任何限制。 立即下載免費試用版!


用公式計算帶有文本的單元格數

要在Excel中計算帶有文本的單元格數,請執行以下操作。

1.選擇要顯示計數結果的空白單元格。

2.複製並粘貼公式 = COUNTA(A1:D15)-COUNT(A1:D15) 進入公式欄,然後按Enter鍵。 然後,您可以看到所選單元格中顯示的總單元格編號。

備註:粘貼公式後,需要根據需要更改單元格範圍。


用公式計算單元格數

在用文本對單元格編號進行計數之後,本節將向您展示用數字對單元格編號進行計數的公式。

1.選擇一個空白單元格以放入計數結果。

2.複製並粘貼公式 = COUNT(A1:D15) 進入公式欄,然後按Enter鍵。 看截圖:

然後,您可以看到計數結果顯示在所選單元格中。

備註:複製和粘貼後,根據工作表更改公式中的單元格範圍。


Office Tab -Excel中的工作簿的選項卡式瀏覽,編輯和管理:

Office Tab 將在Web瀏覽器(如Google Chrome,Internet Explorer新版本和Firefox)中看到的選項卡式界面引入Microsoft Excel。 這將是一種節省時間的工具,並且在您的工作中不可替代。 參見下面的演示:

單擊免費試用Office選項卡!

Excel的Office選項卡


相關文章:

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (11)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How can I count the cells in excel that contains only letters as a text and not numbers?
eg this is a cell with text in excel "john1980" and also "john". I want to count only cells that contains eg "john" and not "john1980"

Thank you
This comment was minimized by the moderator on the site
Hi John,

Try this formula: =COUNTIF(A1:D11, "john")
This comment was minimized by the moderator on the site
Hi,
The "john1980" and also "john" is an example. The cells has random text and text with mumbers. Not a specific word.
This comment was minimized by the moderator on the site
Hi, how can we count the added numbers in a cell , for eg - =1+7+3  , which is 3 numbers . 
This comment was minimized by the moderator on the site
I am stumped trying to work this out. In column “E” I enter a number a few times a day.
I would like in column “F” to equal what the number of entries are from the proceeding rows in column E. I also want the number of entries to subtotal and I want that subtotals divided by the number of entries. Below is an example of what I need.
i.e.
At 10:00 am, I enter 102 in E4, I need F4 to show the auto sum value of E column divided by the number of entries in E column from a starting point of my entries (E4), down to the current row being worked, “4 is current”.
At 10:07 am, I enter 115 in E5, I need F5 to show the auto sum value of E column divided by the number of entries in E column from a starting point of my entries (E4), down to the current row being worked, “5 is current”.
At 10:12 am, I enter 96 in E6, I need F6 to show the auto sum value of E column divided by the number of entries in E column from a starting point of my entries (E4), down to the current row being worked, “6 is current”.
The number of my entries in column E vary from day to day with some rows not having an entry in the E column. I would like the formula to skip rows with no entry in the E column. I thank you so very much in advance for your help


1A B C D E F
2 Days #s
3 Date Time Pressure Temperature Rolling Average
4 2/28/1998 10:00am 40 102 102
5 2/28/1998 10:07am 40 115 =E4+E5/2 or 108.5
6 2/28/1998 10:12am 36 96 =E4+E5+E6/3 or 104.3
7 2/28/1998 10:30am 47 130 =E4+E5+E6+E7/4 or 110.7
8 2/28/1998 1:15pm 41 105 =E4+E5+E6+E7+E8/5 or 109.6
9 3/2/1998 9:15am 43 SKIP. No entry was made in E9
10 3/2/1998 9:45am 40 108 =E4+E5+E6+E7+E8+E10/6 or 109.3
11 3/2/1998 10:30am 39 99 =E4+E5+E6+E7+E8+E10+E11/7 or 107.8
This comment was minimized by the moderator on the site
Hi
can you tell me how i can count the number is written in cell


|123456789| show me is 9 word in this cell
This comment was minimized by the moderator on the site
Hi Bilal,
This formula can help you =LEN(A1)-LEN(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,0,""),1,""),2,""),3,""),4,""),5,""),6,""),7,""),8,""),9,"")).
Thanks for your comment.
This comment was minimized by the moderator on the site
Hi,

How to know the number of the number of an entry that we are making in excel? Please help me regarding this,
This comment was minimized by the moderator on the site
Hi,
Would you please provide a screenshot of your spreadsheet showing what you are exactly trying to do?
This comment was minimized by the moderator on the site
Thank you a lot as well. It resolved my excel problems
This comment was minimized by the moderator on the site
Thank you so much.It really helped me a lot.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations