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

Data Analysis

  • Conflicting Multiple Conditional Formatting Rules in Excel
  • How to create Checklist in Excel
  • How To Perform and Interpret Regression Analysis in Excel
  • How to calculate average last N values in a table in Excel
  • How to combine 2 or more chart types in a single chart in Excel

References

  • How to calculate two-way lookup VLOOKUP in Excel Table
  • Approximate match with multiple criteria in Excel
  • Merge tables with VLOOKUP in Excel
  • Count rows that contain specific values in Excel
  • How to use Excel ROW Function

Data Validations

  • Excel Data validation must begin with
  • Excel Data validation allow weekday only
  • How To Create Drop-down List in Excel
  • Prevent invalid data entering in specific cells
  • Excel Data validation with conditional list

Count cells equal to case sensitive in Excel

by

This tutorial shows how to Count cells equal to case sensitive in Excel using the example below;

Formula

=SUMPRODUCT((–EXACT(value,range)))

Explanation

To count cells that contain certain text in a case-sensitive manner, you can use a formula that uses the EXACT function along with SUMPRODUCT.

In the example, there is a list of names in a named range (“names”), B3:B9. In the range D3:D6, there is a another list of names, with duplicates removed. To get the count of “ayako”, you can use the formula:

=SUMPRODUCT((--EXACT("ayako",B3:B9)))

In the example, which uses the named range “names”, the first formula is:

=SUMPRODUCT((--EXACT(D3,names)))

Both formulas above return 3, since there are 3 occurrences of “ayako” (lowercase) in the range B3:B9.

How this formula works

The EXACT function takes to arguments, text1 and text2. When these values match exactly (respecting case), EXACT returns TRUE. In this case, we are giving EXACT a range for text1, so it becomes an array formula and returns an array of TRUE and FALSE values like this:

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

Each TRUE represents an exact match of “ayako” in B3:B9.

The double-hypen (technically: double unary) converts the TRUE false values into 1’s and 0’s that look like this:

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

Finally, SUMPRODUCT simply adds up the values in the array and returns 3. Because SUMPRODUCT can handle arrays natively, it’s not necessary to use Control+Shift+Enter to enter this formula.

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

  • SWITCH function example in Excel
  • How to return blank in place of #DIV/0! error in Excel
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • IF with boolean logic in Excel
  • OR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • How to get number of days, weeks, months or years between two dates in Excel
  • Custom weekday abbreviation in Excel
  • Get days between dates ignoring years in Excel
  • How to get workdays between dates in Excel
  • How to calculate Next working/business day in Excel

Grouping

  • Group numbers with VLOOKUP in Excel
  • If cell contains one of many things in Excel
  • Calculate conditional mode with criteria in Excel
  • How to randomly assign people to groups in Excel
  • Running count group by n size in Excel

General

  • How to generate random number weighted probability in Excel
  • How to calculate percent variance in Excel
  • Flash Fill in Excel
  • How to increase by percentage in Excel
  • How to calculate percent of students absent in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning