Use Wildcards in COUNTIF Formula in Excel

Wildcards are helpful in searching for data throughout Excel and other database search tools. In my following example I have a list in which I want to count how many times Cincinnati appears in the list. The problem is that I have one entry as “Cincy” and the others as “Cincinnati”. The wildcard I will use is an asterisk. “Cin*” will find all cells that begin with “Cin”.

Excel list for Countif

Using data validation I could have prevented entries to a clean list. Stay tuned next time for a post on data validation.

countif

The COUNTIF formula needs a range. This is simply the cells in which I want to do the counting from. The second part to the COUNTIF is the criteria. I use “Cin*” which the * represents zero or more characters. “Cin*” would find “Cincy” and “Cincinnati”. So my formula now correctly reads 4. If I had tried to count “Cincinnati” then the formula would of skipped over “Cincy” and would have given me 3.

countif cin

Advertisements

About Steve Chase

I want to help you work in your business, so you can work on your business. I want to help you achieve your goals and help you have a successful small business journey. I understand that keeping up with the latest technology and cloud based computer trends can be difficult, when you’re running your day to day business. But, it is crucial that you keep up with the technology and best understand your options, in order to thrive in this new era of online business. I can help you discover the right software and tools for your business, train your team on how to use them, and mentor you to best serve and delight your customers. My certifications include: QuickBooks ProAdvisor, Microsoft Office Specialist Master, and OntraPort Certified Consultant. Please contact me on my new website at www.sequentiasolutions.com
This entry was posted in Excel. Bookmark the permalink.

One Response to Use Wildcards in COUNTIF Formula in Excel

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s