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

Excel Chart Maps used with the Geography Data Type

Excel Chart Maps used with the Geography Data Type

Excel - using the Scenario Manager to track house payments with skyrocketing mortgage rates

Excel - using the Scenario Manager to track house payments with skyrocketing mortgage rates

Excel Images - Two New Features -  IMAGE function and Data from Image

Excel Images - Two New Features - IMAGE function and Data from Image

Excel Image Function

Excel Image Function

Recent Word Articles

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

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

Word - Five Tips for Working with Heading Styles

Word - Five Tips for Working with Heading Styles

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 Calendar - Meetings vs. Appointments

Outlook Calendar - Meetings vs. Appointments

Outlook Contact Group - Distribution List - Schedule a Meeting Trick - Huge Timesaver

Outlook Contact Group - Distribution List - Schedule a Meeting Trick - Huge Timesaver

Chris Menard

Chris Menard is a Microsoft Certified Trainer (MCT) and is employed full-time as a Trainer for BakerHostetler, one of the nation’s largest law firms. Menard has a YouTube channel with over 800 technology videos covering Excel, Word, Zoom, Teams, Outlook, Gmail, Google Calendar, and other resources that over 12 million viewers have appreciated. Menard also does public speaking at conferences for CPAs and Administrative Professionals. Connect with Chris on LinkedIn at chrismenardtraining.com/linked or on YouTube at chrismenardtraining.com/youtube

Categories