VLOOKUP Not Working with CONCATENATE: How to Fix the Issue

UATeam
2 min readSep 10, 2024

--

VLOOKUP and CONCATENATE are two powerful Excel functions often used together for data lookup and analysis. However, users sometimes face issues when trying to use VLOOKUP with CONCATENATE. This article will explore the common causes behind this issue and provide solutions to fix it;

Why VLOOKUP with CONCATENATE May Not Work

  1. Data Formatting Issues
  • Inconsistent formatting: If the cells you’re concatenating have inconsistent formats (e.g., numbers stored as text, different date formats), VLOOKUP may fail to find a match;
  • Leading/trailing spaces: Extra spaces in the concatenated values can cause mismatches between the lookup value and the data range.

2. Exact Match vs. Approximate Match

  • Approximate match mode: If VLOOKUP is set to find an approximate match (i.e., TRUE as the last argument), it might not work correctly with concatenated values.
  • Exact match mode: To avoid this, make sure to use FALSE as the fourth argument in VLOOKUP to ensure it looks for an exact match.

3. Formula Syntax Errors

  • Incorrect use of the CONCATENATE function or ampersand (&) can lead to formula errors.
  • CONCATENATE is useful but is now replaced by the TEXTJOIN or & operator, which may simplify your formulas.

How to Fix VLOOKUP with CONCATENATE

  1. Ensure Consistent Formatting
  • Make sure that all values you’re concatenating are in the same format (text, number, or date). If they aren’t, you can use the TEXT function to standardize formatting:
=VLOOKUP(TEXT(A1, "0") & TEXT(B1, "0"), data_range, column_index, FALSE)

2. Trim Extra Spaces

  • Use the TRIM function to remove any extra spaces from your concatenated values:
=VLOOKUP(TRIM(A1) & TRIM(B1), data_range, column_index, FALSE)

3. Use Correct Concatenation Syntax

  • Make sure your concatenation is properly formatted. Here’s an example using the & operator:
=VLOOKUP(A1 & B1, data_range, column_index, FALSE)
  • Alternatively, you can use the TEXTJOIN function if you’re working with Excel 2016 or later:
=VLOOKUP(TEXTJOIN("", TRUE, A1, B1), data_range, column_index, FALSE)

4. Double-check Range and Lookup Value

  • Ensure that the lookup value you are concatenating matches the format of the data in your lookup range.
  • Your lookup range should contain concatenated values that match the lookup column format.
Complete Guide to Freelancing

Common Mistakes to Avoid

  • Using approximate match (TRUE) in VLOOKUP can cause errors when working with concatenated values. Always use FALSE for exact matches.
  • Not handling data types: Ensure the concatenated values are the same data type as the values in the lookup column.
  • Concatenation errors: Make sure there are no syntax errors in your CONCATENATE or & operation.

Conclusion

If VLOOKUP isn’t working with CONCATENATE, it’s usually due to formatting inconsistencies, extra spaces, or incorrect formula syntax. By ensuring that the data types are consistent, trimming spaces, and using the correct concatenation method, you can resolve most issues. Following the steps above will help you effectively combine these two functions for more accurate lookups in Excel.

#auteamsf

--

--