Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Match Excel Francais: Fix French Accent Matching

· 8 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To match French text in Excel, you need to handle accented characters (é, è, ê, à, ç, ù, î, ô, û, ë, ï, ü, ÿ, œ, æ) and ligatures correctly. Excel's built-in functions like VLOOKUP, MATCH, COUNTIF, and XLOOKUP are case-insensitive but accent-sensitive by default, so "café" and "cafe" are treated as different values. The fix is to use a helper column that normalises text (typically by removing diacritics) and then match on that column. This guide shows you how to build that helper column with formulas, how to use it in lookups, and how to avoid the common pitfalls that cause #N/A errors when working with French data.

What You'll Need

  • Excel 2013 or later (Excel 365 recommended for dynamic arrays and XLOOKUP). The steps work in Excel for Windows, Excel for Mac, and Excel for the web, though menu labels may differ slightly by version and region.
  • A worksheet containing French text in one or more columns (e.g., product names, customer names, city names).
  • Basic familiarity with formulas and cell references.
  • Optional: Power Query (built into Excel 2016 and later) if you prefer a point-and-click normalisation method.

Step-by-Step

  1. Identify the columns that contain French text. Look for accented letters and ligatures. Common examples: "École", "Crème brûlée", "Ça va", "Œuvre", "Noël". Note which column you want to use as the lookup key and which column contains the value you want to return.
  2. Insert a helper column next to each French text column. Right-click the column header and choose Insert. Give the helper column a clear name such as "Key_Normalized". You will use this column for matching instead of the original text column.
  3. Enter a normalisation formula in the first data row of the helper column. The most reliable approach uses SUBSTITUTE to replace each accented character with its unaccented equivalent. For example, if your French text is in A2, enter:
    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"é","e"),"è","e"),"ê","e"),"ë","e"),"à","a"),"â","a"),"ä","a"),"ç","c"),"ù","u"),"û","u"),"ü","u"),"î","i"),"ï","i"),"ô","o"),"ö","o"),"œ","oe"),"æ","ae"),"ÿ","y"),"É","E")
    This formula handles lowercase accents and the uppercase É. For full coverage, add nested SUBSTITUTE calls for uppercase accented characters (È, Ê, À, Â, Ç, Ù, Û, Î, Ï, Ô, Œ, Æ, Ÿ). The formula becomes long but works in all Excel versions. Alternatively, if you have Excel 365, you can use a shorter approach with REDUCE and LAMBDA, but the nested SUBSTITUTE method is the most portable.
  4. Copy the formula down the helper column. Double-click the fill handle or drag it to the last row of your data. Verify that a few rows show the expected unaccented result (e.g., "École" becomes "Ecole").
  5. Create a matching helper column in the lookup table or second list. If you are matching against a separate range (e.g., a product list on another sheet), add a helper column there too and apply the same normalisation formula to its French text column. Both sides of the match must be normalised in the same way.
  6. Use the helper columns in your lookup formula. For example, if you want to find the price of "Café" from a product table where the product name is in column A (original) and column B (normalised), and the price is in column C, use:
    =XLOOKUP(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(D2,"é","e"),"è","e"),"ê","e"),"à","a"),"ç","c"), B:B, C:C, "Not found")
    Or, if you have already normalised the search term in a helper cell, simply reference that cell: =XLOOKUP(E2, B:B, C:C, "Not found"). For older Excel versions, use INDEX/MATCH: =INDEX(C:C, MATCH(E2, B:B, 0)).
  7. Test with accented and unaccented search terms. Type "cafe" (no accent) in your search cell and confirm it finds "Café". Then type "Café" and confirm it also works. Both should return the same result because both sides are normalised.
  8. Handle ligatures and special characters. French ligatures œ and æ are not single accented letters; they are separate characters. The SUBSTITUTE formula above converts œ to "oe" and æ to "ae". If your data contains these, make sure the normalisation includes them. Also consider the cedilla (ç → c) and the diaeresis (ë, ï, ü, ÿ → e, i, u, y).
  9. Optional: use Power Query for a cleaner normalisation. If you prefer not to write long formulas, load your table into Power Query (Data > From Table/Range). Add a custom column with a normalisation step, or use the built-in "Replace Values" feature to replace each accented character. Then load the normalised table back to Excel and use it for matching. Power Query remembers the steps, so refreshing handles new data automatically.
  10. Hide or group the helper columns to keep your worksheet tidy. You can also place them on a separate sheet. Do not delete them, because your lookup formulas depend on them.

Common Mistakes

  • Normalising only one side of the match. If the lookup value is normalised but the lookup array is not (or vice versa), accented and unaccented versions will still not match. Always normalise both sides.
  • Forgetting uppercase accented letters. A formula that handles é but not É will fail on "École". Include both cases in your SUBSTITUTE chain, or convert text to lowercase first with LOWER and then normalise.
  • Assuming Excel's "Ignore accents" option works everywhere. Some Excel features (like Filter and certain comparison operators) have an option to ignore accents, but VLOOKUP, MATCH, COUNTIF, and XLOOKUP do not offer that toggle. You must normalise the text.
  • Overlooking ligatures. œ and æ are not decomposed by removing diacritics; they must be replaced explicitly with "oe" and "ae".
  • Using the wrong locale settings. If your system uses a different language or region, Excel's treatment of some characters may vary. Test with a small sample before applying to large datasets.
  • Hardcoding accented characters in formulas without testing. Copy-paste errors can introduce the wrong character (e.g., a similar-looking Cyrillic letter). Type the characters directly or copy from your data.

Tips

  • Create a reusable normalisation formula in a named cell or a separate sheet, then reference it with a custom function if you are comfortable with VBA. However, VBA macros must be enabled and saved in a macro-enabled workbook (.xlsm), which some organisations block.
  • For a quick one-off check, use Excel's Find and Replace (Ctrl+H) with "Match case" off to see how many accented variants exist. This helps you decide which characters to include in your SUBSTITUTE chain.
  • If you work with French text frequently, consider storing a normalised version of the text in your source data (e.g., an extra column in your database) so Excel does not need to compute it each time.
  • Use TRIM and CLEAN around your normalisation formula to remove extra spaces and non-printing characters that can also cause mismatches: =TRIM(CLEAN(SUBSTITUTE(...))).
  • When using XLOOKUP, set the match mode to 0 (exact match) and the search mode to 1 (search first to last) for predictable results. The default is exact match, but explicit is safer.
  • Document your helper columns with a comment or a header note so colleagues understand why they exist and do not delete them.

Troubleshooting

If your lookup still returns #N/A after normalising both sides, work through these checks in order:

  1. Verify the normalised values visually. Compare a few cells in both helper columns. They should look identical for matching entries. If one shows "Ecole" and the other "École", the formula did not apply correctly.
  2. Check for hidden spaces or non-breaking spaces. French text often contains non-breaking spaces before punctuation (e.g., "Bonjour !"). Use TRIM and CLEAN, and also SUBSTITUTE CHAR(160) with a regular space if needed.
  3. Confirm the formula references the correct cells. A common error is copying the formula down but leaving absolute references wrong. Use relative references for the text cell and absolute references for any fixed ranges.
  4. Test with a simple exact match. In a blank cell, enter =A2=B2 where A2 and B2 are the normalised cells. If it returns FALSE, the text differs in ways you cannot see (case, spaces, invisible characters). Use LEN to compare lengths.
  5. Check for mixed data types. If one column is stored as text and the other as a number (e.g., postal codes), normalisation may not be the issue. Convert both to text with TEXT or by prefixing an apostrophe.
  6. If using Power Query, refresh the query after adding new data. The normalised table may be stale.
  7. If formulas become too long or slow, consider using a VBA user-defined function (UDF) to normalise text. Write a simple function that loops through a replacement dictionary. Enable macros only from trusted sources, and save as .xlsm. If macros are blocked, stick with the formula approach or Power Query.

Frequently Asked Questions

Does Excel have a built-in "ignore accents" option for VLOOKUP or MATCH?

No. Excel's lookup functions are case-insensitive but accent-sensitive. There is no toggle to ignore accents in VLOOKUP, MATCH, COUNTIF, or XLOOKUP. You must normalise the text with a helper column or Power Query.

Can I use wildcards with accented text in COUNTIF or SUMIF?

Yes, wildcards work, but they still treat accented and unaccented characters as different. For example, COUNTIF(range, "caf*") will not count "café" unless you normalise the range first. Use a helper column with normalised text and then apply COUNTIF to that column.

What about the French ligature œ? Does SUBSTITUTE handle it?

SUBSTITUTE can replace œ with "oe" if you include it in the formula. It is a single character, so a direct SUBSTITUTE works. The same applies to æ → "ae". Make sure your formula includes these replacements if your data contains them.

Will this normalisation affect sorting or filtering?

Sorting and filtering use the original text column, so accented and unaccented versions will sort separately. If you want to sort as if accents were ignored, sort by the normalised helper column instead. Filtering can use the helper column with a filter on the normalised values.

Is there a shorter formula for Excel 365?

Yes, you can use REDUCE with a LAMBDA to apply a list of substitutions, but it is more complex and may be slower on large datasets. The nested SUBSTITUTE method is portable and easy to audit. For most users, the long formula is fine.

Can I normalise text in Excel for the web?

Yes, the SUBSTITUTE formula works in Excel for the web. Power Query is also available in Excel for the web, though the interface may differ slightly. Note that some advanced features like macros are not supported in the web version.