How to Count Name Variations for a Specific Week in Excel
Question details
The user needs to count the number of occurrences of name variations (e.g., Jen and Jennifer) that happen within a specific week number.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking or counting specific names with slight variations over a particular timeframe based on a week number column.
- Observed behavior
- Using a formula to successfully match the beginning of a name string and a specific week number simultaneously.
Ensure your dataset is organized with one column dedicated to names and another containing the corresponding week numbers. Identifying the exact shared prefix for the name variations (like 'jen' for Jennifer and Jen) is required for the formula to work accurately.
Use the COUNTIFS Function with an Asterisk Wildcard
Apply the COUNTIFS function utilizing an asterisk (*) wildcard to match all names starting with a specific text string alongside the week number condition.
The COUNTIFS function applies criteria to cells across multiple ranges and counts the number of times all criteria are met. By combining this function with the asterisk (*) wildcard, you can easily match any sequence of characters that follow a specific text string, capturing all name variations seamlessly.
Click on the blank cell in your worksheet where you want the final count result to be displayed.
Type the formula =COUNTIFS(B2:B500, "jen*", C2:C500, 43) into the formula bar. In this example, B2:B500 represents the name range, "jen*" matches any name starting with 'jen', C2:C500 is the week number range, and 43 is the specific target week.
Press the Enter key to calculate the result. You can adjust the cell ranges, name prefix, and week number inside the formula to fit your specific spreadsheet data.

Easily Count Data Variations with WPS Office
WPS Spreadsheet fully supports advanced functions like COUNTIFS and wildcards, making it incredibly easy to track name variations, dates, and complex conditions in your datasets.
- 1. Open your dataset: Launch WPS Spreadsheet and open your workbook containing the names and week numbers.
- 2. Select a blank cell: Click on the cell where you wish to display the calculated count for the name variations.
- 3. Input the COUNTIFS function: Type =COUNTIFS(Name_Range, "text*", Week_Range, Week_Number) into the formula bar and press Enter to instantly get your accurate count.

Frequently Asked Questions
Are wildcard characters case-sensitive in the COUNTIFS function?
No, the COUNTIFS function in Excel and WPS Spreadsheet is not case-sensitive. Searching for "jen*" will successfully match "Jen", "jennifer", and "JENNIFER" equally.
How can I count names that end with a specific text instead of starting with it?
To count names ending with specific text, place the asterisk before the text string in your criteria. For example, use "*son" in your formula to count names like Jackson, Harrison, or Mason.
Can I use a cell reference instead of typing the week number directly in the formula?
Yes, you can replace the hardcoded week number (like 43) with a cell reference (like D1) to make your formula more dynamic. The updated formula would look like =COUNTIFS(B2:B500, "jen*", C2:C500, D1).
What if I need to count variations containing a specific text anywhere in the name?
Place an asterisk both before and after the text string in your criteria. For example, using "*jen*" will count any cell containing that sequence, matching names like 'Jennifer', 'Jen', and 'McJen'.




