Find Words with Exactly One A and One U in Excel
Question details
Identify and sort words that contain exactly one A and exactly one U, regardless of letter case or position.

- 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.
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.
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.
Enter Match in cell B1 next to the word list in column A.
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","").
Select B2 and drag its fill handle down alongside all words in column A. Matching rows show au; other rows remain blank.
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.

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. 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. 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. Apply it to the list: Select B2 and drag the fill handle down to the last word in column A.
- 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.

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.




