Others

How to Use Wildcards to Filter Arabic Text in Excel

Huma Ashraf ChHuma Ashraf Ch Nov 2, 2026 869 views

Question details

The user needs to filter Arabic text in Excel using wildcards, but the Custom AutoFilter does not recognize the Arabic question mark as a valid wildcard.

How to Use Wildcards to Filter Arabic Text in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Filtering right-to-left (RTL) Arabic text data using the Custom AutoFilter feature in Excel.
Observed behavior
Excel recognizes the standard English question mark (?) as a wildcard but fails to filter properly when the visually similar Arabic question mark (؟) is used, treating it as standard punctuation instead of a search wildcard.
Before you start

Ensure your system keyboard layout is configured to allow easy switching between Arabic and English inputs, as you will need to type standard English characters to utilize wildcards properly.

Solution 1Recommended

Use Standard English Wildcards for Arabic Text Filtering

Use the standard English question mark (?) or asterisk (*) instead of Arabic punctuation to ensure Excel's Custom AutoFilter functions correctly.

Excel's filtering engine relies on standard ASCII wildcard characters. Because the Arabic question mark (؟) is a distinct Unicode character, Excel reads it as literal text rather than a command to substitute a character. To work around this limitation, you must input the English versions of the wildcard characters.

1
Enable the filter

Select the header row of the column containing your Arabic text data. Go to the 'Data' tab on the ribbon and click on the 'Filter' button to display the dropdown arrows.

2
Open Custom AutoFilter

Click the filter dropdown arrow on your specific column header, hover over 'Text Filters,' and select 'Custom Filter' from the context menu.

3
Switch keyboard layout

Press Alt + Shift or Windows Key + Spacebar to temporarily switch your keyboard layout from Arabic to English.

4
Apply standard wildcards

Type the standard English question mark (?) to represent a single character, or the asterisk (*) to represent multiple characters, alongside your Arabic search string. Click 'OK' to apply the filter.

Use Standard English Wildcards for Arabic Text Filtering
Alternative Built-in Filters: If you prefer not to switch keyboards constantly, you can use the built-in 'Contains...', 'Begins With...', or 'Ends With...' options in the Text Filters menu, which do not require manual wildcard character input.
Free Microsoft Office alternative

Try WPS Office for Multilingual Data Management

If you frequently experience limitations when working with right-to-left languages and custom data filtering in Microsoft Office, WPS Office provides a highly compatible, fast, and free alternative with excellent spreadsheet capabilities.

  1. 1. Download and install: Download WPS Office for free from the official website and complete the quick installation.
  2. 2. Open your data file: Launch WPS Spreadsheet and open your existing .xlsx file containing the Arabic text.
  3. 3. Filter data easily: Use the Data > Filter tool to effortlessly search, sort, and manage your multilingual records.
Fully compatible with Microsoft Excel (.xlsx, .xls) file formats.Seamlessly handles right-to-left (RTL) languages and complex text layouts like Arabic.Includes intuitive text filtering tools similar to Excel for a zero learning curve.Free and lightweight alternative to heavy productivity suites.
microsoft office alternative - wps office

Frequently Asked Questions

What is the difference between the English and Arabic question mark in Excel?

The English question mark (?) is programmed into Excel's core engine as a wildcard representing a single character in formulas and filters. The Arabic question mark (؟) is treated strictly as a standard text character, which prevents it from triggering the wildcard function in Custom AutoFilter.

Can I use the asterisk (*) wildcard with Arabic text in Excel?

Yes, the standard asterisk (*) wildcard works perfectly with Arabic text to represent any sequence of characters. You simply need to ensure you are typing the standard English asterisk when setting up your custom text filter.

How do I fix right-to-left alignment issues when filtering Arabic text?

To ensure your data and filter dropdowns align properly for Arabic text, verify that your worksheet is set to 'Right-to-Left' mode. You can adjust this by navigating to the 'Page Layout' tab and clicking 'Sheet Right-to-Left'.

Why does my AutoFilter return zero results when searching Arabic words?

This usually happens due to mismatched characters, such as using the Arabic question mark (؟) instead of the English one (?), or due to hidden whitespace characters like zero-width non-joiners in the Arabic text data. Try using the 'Contains' filter instead of exact wildcard matches.