{"id":3872,"date":"2023-02-02T16:52:12","date_gmt":"2023-02-02T16:52:12","guid":{"rendered":"https:\/\/www.bizinfograph.com\/resource\/?p=3872"},"modified":"2024-04-22T21:29:23","modified_gmt":"2024-04-22T21:29:23","slug":"how-to-count-cells-with-text-in-excel","status":"publish","type":"post","link":"https:\/\/www.bizinfograph.com\/resource\/how-to-count-cells-with-text-in-excel\/","title":{"rendered":"How to Count Cells with Text in Excel?"},"content":{"rendered":"<p>Count Cells with Text in Excel is a crucial function for anyone working with data. It provides the means to quickly and accurately assess the presence of text within a dataset, aiding in data analysis, quality control, and report generation. With Count Cells with Text in Excel, you&#8217;re not just counting; you&#8217;re gaining insights, making informed decisions, and ensuring data accuracy. Embrace the simplicity and power of this function to elevate your data handling and reporting capabilities in Excel. Whether you&#8217;re dealing with lists, surveys, or reports, Count Cells with Text in Excel is an essential tool that ensures you have a clear picture of your data at all times.<\/p>\n<p><strong>This Content Covers:<\/strong><\/p>\n<ol>\n<li><a href=\"#how-to-count-cells-with-text-in-excel?\"><strong> How to Count Cells with Text in Excel?<\/strong><\/a><\/li>\n<li><a href=\"#how-to-count-cells-with-any-text-in-excel?\"><strong> How to Count Cells with Any Text in Excel?<\/strong><\/a><\/li>\n<li><a href=\"#how-to-count-cells-with-specific-text-in-excel?\"><strong> How to Count Cells with Specific Text in Excel?<\/strong><\/a><\/li>\n<li><a href=\"#how-to-count-cells-with-text-excluding-spaces-and-empty-strings?\"><strong> How to Count Cells with Text Excluding Spaces and Empty strings?<\/strong><\/a><\/li>\n<li><a href=\"#how-to-count-cells-with-colored-text-in-excel?\"><strong> How to Count Cells with Colored Text in Excel?<\/strong><\/a><\/li>\n<\/ol>\n<h2><strong id=\"how-to-count-cells-with-text-in-excel?\">1. How to Count Cells with Text in Excel with COUNTIF Function?<\/strong><\/h2>\n<p><strong>Step 1: <\/strong>To count the number of cells, contain text just use the formula given below. We use the COUNTIF function here to count the cells.<\/p>\n<p><strong>=COUNTIF(range,&#8221;*&#8221;)<\/strong><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-3873 size-full\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-1.png\" alt=\"Count Cells with Text in Excel\" width=\"583\" height=\"352\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-1.png 583w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-1-300x181.png 300w\" sizes=\"(max-width: 583px) 100vw, 583px\" \/><\/p>\n<p><strong>Step 2: <\/strong>This Excel formula will give you the calculation of how many cells in the selected range have text in them. The formula counts all cells that contain any text since the asterisk<strong> (*)<\/strong> is a wildcard that matches any string of characters.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3874 size-full\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-2.png\" alt=\"Count Cells with Text in Excel\" width=\"611\" height=\"426\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-2.png 611w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-2-300x209.png 300w\" sizes=\"(max-width: 611px) 100vw, 611px\" \/><\/p>\n<h2><strong id=\"how-to-count-cells-with-any-text-in-excel?\">2. How to Count Number of Cells with Text in Excel by Formula?<\/strong><\/h2>\n<p>Suppose you want to count cells from a table or worksheet in a spreadsheet that has different sorts of text and some of them are not visible to us such as cells with special characters, numbers formatted as text, visually blank cells which has empty texts, space, etc. To count these sorts of cells also you can follow the instructions below.<\/p>\n<p><strong>Step 1: <\/strong>Select cell C3 and insert the formula given below.<\/p>\n<p><strong>=SUMPRODUCT(ISTEXT(range)*1)<\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-3875\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-3.png\" alt=\"Count Cells With Text\" width=\"649\" height=\"332\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-3.png 649w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-3-300x153.png 300w\" sizes=\"(max-width: 649px) 100vw, 649px\" \/><\/p>\n<p><strong>Step 2: <\/strong>Click Enter. Now you can see that the formula has counted the empty cells and the cell will number as well.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3876\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-4.png\" alt=\"Count Cells With Text\" width=\"643\" height=\"419\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-4.png 643w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-4-300x195.png 300w\" sizes=\"(max-width: 643px) 100vw, 643px\" \/><\/p>\n<h2><strong id=\"how-to-count-cells-with-specific-text-in-excel?\">3. Way to Count Cells with Specific Text in Microsoft Excel?<\/strong><\/h2>\n<h3><strong>Count cells with certain text<\/strong><\/h3>\n<p>Suppose you want to count cells that have a specific text in them. You can do this just by replacing the asterisk symbol with that text in the <strong>COUNTIF <\/strong>formula.<\/p>\n<p><strong>Step 1: <\/strong>Insert the formula from the picture below in any cell containing the specific text you are looking for.<\/p>\n<p><strong>=COUNTIF(range,&#8221;Text&#8221;)<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3877 size-full\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-5.png\" alt=\"Count Cells with Text in Excel\" width=\"635\" height=\"357\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-5.png 635w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-5-300x169.png 300w\" sizes=\"(max-width: 635px) 100vw, 635px\" \/><\/p>\n<p><strong>Step 2: <\/strong>Hit the Enter key. As you can see there are three Farhans in the selected range so the formula also returned number 3 in the cell that we applied the formula into. If there were only one Farhan then the formula would return 1. You can also use this method to check if a particular text is present more than once in a datasheet or not.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3878\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-6.png\" alt=\"Count Cells With Text\" width=\"545\" height=\"373\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-6.png 545w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-6-300x205.png 300w\" sizes=\"(max-width: 545px) 100vw, 545px\" \/><\/p>\n<p><strong>Step 3: <\/strong>Now suppose instead of a full name you just want to put a single letter as text to see how many of these names have that specific text. This formula in the below picture has returned 4 because Rishad, Synthia, Laboni, and David all of these 4 names have an <strong>\u201ci\u201d<\/strong> inside their name.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3879\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-7.png\" alt=\"Count Cells With Text\" width=\"548\" height=\"398\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-7.png 548w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-7-300x218.png 300w\" sizes=\"(max-width: 548px) 100vw, 548px\" \/><\/p>\n<h2><strong id=\"how-to-count-cells-with-text-excluding-spaces-and-empty-strings?\">4. How to Count Cells with Text Excluding Spaces and Empty strings?<\/strong><\/h2>\n<p>Occasionally, cells that appear to be empty but really contain characters that are invisible to human sight, such as empty strings, apostrophes, spaces, line breaks, etc., may only be empty on the surface. As a result, the formula counts a visually blank cell. Such as the picture below, there are four cells that has text in it one empty looking cell has a space character in it and the other empty-looking cell has empty text string so the formula returned 6.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3880\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-8.png\" alt=\"Count Cells With Text\" width=\"593\" height=\"429\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-8.png 593w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-8-300x217.png 300w\" sizes=\"(max-width: 593px) 100vw, 593px\" \/><\/p>\n<p>To count cells correctly in these sorts of situations, with text excluding space and empty string, follow the steps below.<\/p>\n<p><strong>\u00a0<\/strong><strong>Step 1: <\/strong>Select a cell and insert the formula given below. Click on Enter key and now you can see the formula has excluded spaces and empty strings while counting cells with strings. We use COUNTIFS function to count cells in the range.<\/p>\n<p><strong>=COUNTIFS(range,&#8221;*&#8221;, range, &#8220;&lt;&gt; &#8220;)<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3881\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-9.png\" alt=\"Count Cells With Text\" width=\"510\" height=\"292\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-9.png 510w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-9-300x172.png 300w\" sizes=\"(max-width: 510px) 100vw, 510px\" \/><\/p>\n<h2><strong id=\"how-to-count-cells-with-colored-text-in-excel?\">5. How to Count Cells with Colored Text in Excel Sheet? Advanced Excel Formula.<\/strong><\/h2>\n<p><strong>Step 1: <\/strong>Insert the following formula in a cell where you want the count to be displayed and hit <strong>Enter<\/strong> key. This will count how many cells in that range have data in them. The number 2 in the formula is the numerical indicator for the <strong>COUNT <\/strong>function. Enter the formula as below:<\/p>\n<p><strong>=SUBTOTAL(2,range)<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3882\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-10.png\" alt=\"Count Cells With Text\" width=\"408\" height=\"411\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-10.png 408w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-10-298x300.png 298w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-10-150x150.png 150w\" sizes=\"(max-width: 408px) 100vw, 408px\" \/><\/p>\n<p><strong>Step 2: <\/strong>Right click on a cell containing a colored text that you want to use as filter to get the count of that colored text and select <strong>Filter&gt;&gt;Filter by Selected Cell\u2019s Font Color.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3883\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-11.png\" alt=\"Count Cells With Text\" width=\"500\" height=\"399\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-11.png 500w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-11-300x239.png 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\n<p><strong>Step 3: <\/strong>As soon as you do the previous step, all the other colored text cells will be hidden and the cell in which you inserted the <strong>SUBTOTAL<\/strong> formula will show you how many of those particular-colored cells are there in that table.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3884\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-12.png\" alt=\"Count Cells With Text\" width=\"441\" height=\"321\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-12.png 441w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-12-300x218.png 300w\" sizes=\"(max-width: 441px) 100vw, 441px\" \/><\/p>\n<p><strong>Step 4: <\/strong>Now if you wish to extract other colored text cell\u2019s count, just click on the filter icon and choose any other color from <strong>Filter by Color<\/strong> option.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3885\" src=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-13.png\" alt=\"Count Cells With Text\" width=\"443\" height=\"494\" srcset=\"https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-13.png 443w, https:\/\/www.bizinfograph.com\/resource\/wp-content\/uploads\/2023\/01\/Count-Cells-With-Text-13-269x300.png 269w\" sizes=\"(max-width: 443px) 100vw, 443px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>For ready-to-use Dashboard Templates:<\/p>\n<ol>\n<li><a href=\"https:\/\/www.bizinfograph.com\/dashboard-templates#Finance\" target=\"_blank\" rel=\"noopener\">Financial Dashboards<\/a><\/li>\n<li><a href=\"https:\/\/www.bizinfograph.com\/dashboard-templates#Sales\" target=\"_blank\" rel=\"noopener\">Sales Dashboards<\/a><\/li>\n<li><a href=\"https:\/\/www.bizinfograph.com\/dashboard-templates#Human-Resource\" target=\"_blank\" rel=\"noopener\">HR Dashboards<\/a><\/li>\n<li><a href=\"https:\/\/www.executiveknowledge.org\/dashboard-templates\/35\" target=\"_blank\" rel=\"noopener\">Data Visualization Charts<\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Count Cells with Text in Excel is a crucial function for anyone working with data. It provides the means to quickly and accurately assess the presence of text within a dataset, aiding in data analysis, quality control, and report generation. With Count Cells with Text in Excel, you&#8217;re not just counting; you&#8217;re gaining insights, making &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.bizinfograph.com\/resource\/how-to-count-cells-with-text-in-excel\/\"> <span class=\"screen-reader-text\">How to Count Cells with Text in Excel?<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[453],"tags":[455,454],"class_list":["post-3872","post","type-post","status-publish","format-standard","hentry","category-count-cells-with-text","tag-count-cells-with-text","tag-count-cells-with-text-in-excel"],"_links":{"self":[{"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/posts\/3872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/comments?post=3872"}],"version-history":[{"count":7,"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/posts\/3872\/revisions"}],"predecessor-version":[{"id":9098,"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/posts\/3872\/revisions\/9098"}],"wp:attachment":[{"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/media?parent=3872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/categories?post=3872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bizinfograph.com\/resource\/wp-json\/wp\/v2\/tags?post=3872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}