Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How To Load Analysis ToolPak in Excel
  • How to Create One and Two Variable Data Tables in Excel
  • How to Sort by Color in Excel
  • Remove Duplicates Example in Excel
  • Working With Tables in Excel

References

  • How to get address of named range in Excel
  • Two-way lookup with VLOOKUP in Excel
  • How to use Excel INDIRECT Function
  • LOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • How to get address of first cell in range in Excel

Data Validations

  • Excel Data validation only dates between
  • Prevent invalid data entering in specific cells
  • Excel Data validation must contain specific text
  • Excel Data validation don’t exceed total
  • Excel Data validation date in next 30 days

Count numbers third digit equals 3 in Excel

by

This tutorial shows how to Count numbers third digit equals 3 in Excel using the example below;

Formula

=SUMPRODUCT(--(MID(range,3,1)="3"))

Explanation

To count numbers where the third digit equals 3, you can use a formula based on the SUMPRODUCT and MID functions. In the example shown, the formula in E5 is:

=SUMPRODUCT(--(MID(B5:B12,3,1)="3"))

How this formula works

To get the third character from a string in A1, you can use the MID function like this:

=MID(A1,3,1)

The first argument is a cell reference, the second argument specifies the start number, and the third argument indicates number of characters.

If you give the MID function a range of cells for the first argument, you’ll get back an array of results. In the example shown, this expression:

MID(B5:B12,3,1)

returns an array like this:

{"6";"6";"3";"5";"3";"0";"3";"7"}

This array contains the third digit from each cell in the range B5:B12. Notice the MID function has automatically converted numeric values in the range to text strings and returned the third character as a text value.

When we compare this array using =”3″, we get an array like this:

{FALSE;FALSE;TRUE;FALSE;TRUE;FALSE;TRUE;FALSE}

We use the double negative to coerce the TRUE and FALSE values to 1 and zero respectively, which returns:

{0;0;1;0;1;0;1;0}

Finally, with only one array to work with, the SUMPRODUCT function sums the items in the array and returns the total, 3.

Post navigation

Previous Post:

How to use Excel CHOOSE Function

Next Post:

Customize Ribbon In Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IF, AND, OR and NOT Functions Examples in Excel
  • OR function Examples in Excel
  • SWITCH function example in Excel
  • Check multiple cells are equal in Excel
  • How to use Excel FALSE Function

Date Time

  • Get days, months, and years between dates in Excel
  • Convert date to Julian format in Excel
  • Convert text timestamp into time in Excel
  • Display Days in month in Excel
  • TIME function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group arbitrary text values in Excel
  • Group numbers with VLOOKUP in Excel
  • If cell contains one of many things in Excel
  • Categorize text with keywords in Excel
  • Calculate conditional mode with criteria in Excel

General

  • How to create dynamic named range with INDEX in Excel
  • Cell References: Relative, Absolute and Mixed Referencing Examples
  • Delete Blank Rows at Once in Excel
  • 3D SUMIF for multiple worksheets in Excel
  • How to get amount with percentage in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning