跳到主要内容

如何在Excel中计算带有文本或数字的单元格数量?

例如,您有一个包含文本和数字的工作表,并且想要分别计算文本和数字的单元格总数,您会怎么做? 在Excel中,可以使用公式来实现。 请浏览本教程以获取更多详细信息。

用公式计算带有文本的单元格数

用公式计算单元格数


在Excel中计算并选择具有特定文本或数字的单元格:

Kutools for Excel's 选择特定的单元格 实用程序可以快速计数并选择包含范围内某些文本或数字的特定单元格。立即下载 Kutools for Excel 的全功能 60 天免费试用版!

Kutools for Excel:具有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 Tab!

Excel 的 Office 选项卡


相关文章:

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 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