Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

Combine the COUNTIF and LEFT functions to count cells begin with a certain character in Excel

To count the number of cells which begin with a certain character in Excel, you can combine the COUNTIF and LEFT functions to get it done. Actually there are different kinds of formulas can achieve it. This tutorial will guide you step by step.

Use formulas to count cells begin with a certain character
An awesome feature to easily count cells begin with a certain character


Use formulas to count cells begin with a certain character

Supposing you have a text string list as below screenshot shown, now, to count number of cells that begin with the character “K”, please do as follows.

1. Select a blank cell, copy and paste the below formula into it and press the Ctrl + Shift + Enter keys simultaneously to get the result.

=COUNT(IF(LEFT(A2:A6,1)="K",1,""))

Notes:

  • 1) A2:A6 is the range contains the text string you will count; 1 means that you will count cells begins with one character; and “K” is the character you will count cells based on. Please change them as you need.
  • 2) The below formulas can also help to get it down:
    =COUNTIF(A2:A6,"K*")
    =SUMPRODUCT(--(LEFT(A2:A6,1)="K"))

An awesome feature to easily count cells begin with a certain character

The Select Specific Cells utility of Kutools for Excel can help to easily count number of cells which begin with a certain character in Excel.

Before applying Kutools for Excel, please download and install it firstly.

1. Select the range of cells you will count, click Kutools > Select > Select Specific Cells. See screenshot:

2. In the opening Select Specific Cells dialog, you need to:

  • 2.1) Select Cell in the Selection type section;
  • 2.2) Choose Begins with from the Specific type drop-down list;
  • 2.3) Enter the character you will count cells based on into the textbox;
  • 2.4) Click OK.

3. Then another Select Specific Cells dialog pops up to tell you how many cells in selected range are beginning with “K”, and at the same time, all qualified cells are selected automatically. Click OK to close the dialog.

  If you want to have a free trial ( 30-day) of this utility, please click to download it, and then go to apply the operation according above steps.


Related articles

Use countif with multiple criteria in Excel
In Excel, COUNTIF function may help us to calculate the number of a certain value in a list. But sometimes, we need to use multiple criteria for counting, this will be more complex, today, I will talk about some items for counting with multiple criteria.

Countif by date/month/year and date range in Excel
Methods in this tutorial will guide you to Countif by date/month/year and date range with formulas in Excel.

Count if cells are start with or end with specific text in Excel
Supposing you have a range of data and you want to count the number of cells which start with “kte” or end with “kte” in a worksheet. Here I introduce some tricks instead of manual counting for you.

Countif a specific value across multiple worksheets
Supposing you have multiple worksheets and want to get the number of occurrence of a specific value “Excel” from theses worksheets. How could I count a specific values across multiple worksheet?


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.