Formula Errors

Find Words with Exactly One A and One U in Excel

Aamir Naveed AkramAamir Naveed Akram Nov 20, 2026 868 views

Question details

Identify and sort words that contain exactly one A and exactly one U, regardless of letter case or position.

Find Words with Exactly One A and One U in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user has a list of words and wants to select matching entries for sorting or further analysis.
Observed behavior
Matching words should contain one A and one U in any order; words with extra occurrences of either letter should be excluded.
Before you start

Place the words in column A with a header in A1, and leave column B available for a helper formula. Adjust the cell references if your list starts elsewhere.

Solution 1Recommended

Use a Helper Formula to Mark and Sort Matching Words

Use this case-insensitive formula to mark matching words, then filter and sort the original list.

The formula compares the length of each word before and after removing each letter. LOWER makes the count case-insensitive.

1
Add a helper header

Enter Match in cell B1 next to the word list in column A.

2
Enter the formula

In cell B2, enter =IF(AND(LEN(LOWER(A2))-LEN(SUBSTITUTE(LOWER(A2),"a",""))=1,LEN(LOWER(A2))-LEN(SUBSTITUTE(LOWER(A2),"u",""))=1),"au","").

3
Fill the formula down

Select B2 and drag its fill handle down alongside all words in column A. Matching rows show au; other rows remain blank.

4
Filter and sort the matches

Select the headers and list in columns A and B, then choose Data > Filter. In the Match filter, select au; use the filter menu on the word column to sort A to Z.

Use a Helper Formula to Mark and Sort Matching Words
Letter order does not matter: A word matches whether A comes before or after U. For example, aunt matches, while actual has two As and is excluded.
Find matching words in WPS Spreadsheet

Find Words with One A and One U in WPS Spreadsheet

Use the same letter-counting formula in WPS Spreadsheet, then filter the helper column and sort the matching words.

  1. 1. Open the word list: Open WPS Spreadsheet and select Open to load your workbook. Put the words in column A with a header in A1.
  2. 2. Enter the matching formula: Enter Match in B1. In B2, enter =IF(AND(LEN(LOWER(A2))-LEN(SUBSTITUTE(LOWER(A2),"a",""))=1,LEN(LOWER(A2))-LEN(SUBSTITUTE(LOWER(A2),"u",""))=1),"au","").
  3. 3. Apply it to the list: Select B2 and drag the fill handle down to the last word in column A.
  4. 4. Filter and sort: Select the list and headers, choose Data > Filter, and filter the Match column for au. Use the word column's filter menu to sort the matches A to Z.
Identify words with exactly one A and one U, regardless of caseOpen and save Microsoft Excel XLSX filesFilter and sort results for further analysisUse familiar spreadsheet formulas and menus
microsoft office alternative - wps office

Frequently Asked Questions

Does the formula distinguish uppercase from lowercase letters?

No. LOWER converts the text in A2 to lowercase before counting, so A and a are treated alike, as are U and u.

Does A have to appear before U?

No. The formula counts each letter independently, so either letter can appear first.

How can I show only matching words?

Select the list and helper-column headers, choose Data > Filter, and select au in the helper column's filter menu.

Why is a word with an A and a U not marked as a match?

Check whether the word contains either letter more than once. For example, actual contains two As, so the formula leaves the helper cell blank.