Excel COUNTIF Function With Wildcard Search and Cell Reference
Posted on: 08/18/2022
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).
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
Five Methods for Creating Running Totals in Excel
Excel is a powerful tool that offers various features to manipulate and analyze data efficiently. One of the useful functionalities it provides is the ability to create running totals, which can be essential for tracking cumulative sums over a period.
Mastering Conditional Formatting in Excel with Copilot: A Step-by-Step Guide
Mastering Excel is a critical skill for many professionals across various industries. Among the many features Excel offers, conditional formatting stands out for its ability to visually highlight important data. In this guide, we delve into the world of conditional formatting with the help of Excel's Copilot feature.
Recent Word Articles
Microsoft Word to Adobe Acrobat with Bookmarks
We don't usually want to email, or share are Word files. Frequently, we make our Word documents PDF files. If you lay out your Word document correctly, it is easy to make bookmarks in the PDF.
Microsoft Teams Training with Chris Menard
Over 2.5 hours of training. The course is 50% off.
Recent Outlook Articles
Chris Menard
Chris Menard is a certified Microsoft Trainer (MCT) and works as a full-time Trainer at BakerHostetler - one of the largest law firms in the US. He runs a YouTube channel with 900+ technology videos that cover various tools such as Excel, Word, Zoom, Teams, Gmail, Google Calendar, and Outlook. To date, the channel has helped over 20 million viewers.
Menard also does 2 to 3 public speaking events every year, presenting at the Administrative Professional Conference (APC), the EA Ignite Conference, the Support Staff 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