Excel COUNTIF Function With Wildcard Search and Cell Reference

Posted on:  08/18/2022
Excel COUNTIF Function With Wildcard Search and Cell Reference

The COUNTIF function in Excel allows you to only count the number of cells that meet certain criterion. For example, the number of cells that the HR department appears in. With COUNTIF, you can do a wildcard search by using * (asterisk).

COUNTIF with wildcard search and cell reference

COUNTIF with wildcard search and cell reference

The asterisk looks for any number of characters. For example, *east finds "Northeast" and "Southeast". With COUNTIF you can reference a cell also. The issue comes up with using a wildcard search with a cell reference. To accomplish this, we will use CONCATENATE or & with the cell reference.

YouTube Video on COUNTIF with Wilcard Search

Chapters

  • 0:00 Intro
  • 0:15 COUNTIF explained
  • 1:05 COUNTIF with wildcard
  • 1:56 COUNTIF with cell reference wildcard

COUNTIF Function

COUNTIF Function has two required arguments. The criteria is not case-sensitive. All caps or lowercase or mixed - it doesn't matter.

=countif(b2:b25,"HR") will count HR in cells B2 through B25. If cell B4 reads "HR Department" without the quotes, it could not be counted.
=countif(b2:b25,"*atl*") will count ATL in cells B2 through B25. If cell B4 read "Lives in ATL" without the quotes, it would be counted since we have wildcard before and after atl.

Recent Excel Articles

Mastering Excel Slicers: A Comprehensive Guide

Mastering Excel Slicers: A Comprehensive Guide

Mastering Loan Amortization: A Comprehensive Guide to Understanding and Comparing Loans

Mastering Loan Amortization: A Comprehensive Guide to Understanding and Comparing Loans

Analyzing 50+ Years of Mortgage Rates in Excel: Insights and Trends

Analyzing 50+ Years of Mortgage Rates in Excel: Insights and Trends

Social Security - Breakeven point in Years using Excel

Social Security - Breakeven point in Years using Excel

Recent Word Articles

Microsoft Word to Adobe Acrobat with Bookmarks

Microsoft Word to Adobe Acrobat with Bookmarks

Dictate Feature Updates in Word, Outlook, PowerPoint, and OneNote

Dictate Feature Updates in Word, Outlook, PowerPoint, and OneNote

Microsoft Teams Training with Chris Menard

Over 2.5 hours of training. The course is 50% off.

Microsoft Teams Training with Chris Menard

Teams Training with Chris Menard - 50% off

Recent Outlook Articles

Outlook on the web - 3 Calendar features the desktop version doesn't have

Outlook on the web - 3 Calendar features the desktop version doesn't have

Outlook - Manage your Inbox using Ignore, Archive, Block, Delete, and Clean Up

Outlook - Manage your Inbox using Ignore, Archive, Block, Delete, and Clean Up

Chris Menard

Chris Menard is a Microsoft Trainer (MCT) and works as a full-time Trainer at BakerHostetler - one of the largest law firms in the US. Chris runs a YouTube channel with 900+ technology videos that cover various tools such as Excel, Word, Zoom, Teams, Gmail, Copilot, Google Calendar, and Outlook. To date, the channel has helped over 20 million viewers. Menard also does 2 to 3 public speaking events yearly, presenting at the Administrative Professional Conference (APC), the EA Ignite Conference, the University of Georgia, and CPA conferences. You can connect with him on LinkedIn at https://chrismenardtraining.com/linkedin or watch his videos on YouTube at https://chrismenardtraining.com/youtube.

Categories