The information in this article applies to:
SUMMARYYou can use lookup functions in Microsoft Excel to compare values to find an exact match, but the match will not be case-sensitive. However, you can combine the lookup functions with other built-in functions to perform a case-sensitive match. WORKAROUNDTo force a lookup function to be case-sensitive, combine it with both the IF and EXACT functions. Below are examples of HLOOKUP, LOOKUP, VLOOKUP, and INDEX- MATCH combined with these functions to perform case- sensitive searches. HLOOKUPIn a new worksheet, type the following:
In any blank cell on the active worksheet, type the following formula:
The formula above returns "No exact match" because the lookup value in cell
A3 is not using the same case as the entry in the table.
NOTE: To find a case-sensitive match, change the contents of cell A3 to read Joe. LOOKUPIn a new worksheet, type the following:
In any blank cell on the active worksheet, type the following formula:
The formula above returns "No exact match" because the lookup value in cell
C1 is not using the same case as the entry in the table.
NOTE: To find a case-sensitive match, change the contents of cell C1 to read Joe. VLOOKUPIn a new worksheet, type the following:
In any blank cell on the active worksheet, type the following formula:
The formula above returns "No exact match" because the lookup value in cell
C1 is not using the same case as the entry in the table.
NOTE: To find a case-sensitive match, change the contents of cell C1 to read Joe. INDEX-MATCHIn a new worksheet, type the following:
In any blank cell on the active worksheet, type the following formula:
The formula above returns "No exact match" because the lookup value in cell
C1 is not using the same case as the entry in the table.
NOTE: To find a case-sensitive match, change the contents of cell C1 to read Joe. MORE INFORMATIONYou can use lookup functions to return data from a list. The functions use a lookup value to compare with the list. If a match is found, it will return data from the list. The data returned will come from the location that was specified in the function. REFERENCESMicrosoft Excel 97 and Microsoft Excel 98 Macintosh EditionFor more information about LOOKUP functions, click the Index tab in Microsoft Excel Help, typeLookup worksheet functionand then double-click the selected text to go to the "LOOKUP" topic. Microsoft Excel 7.0For more information about LOOKUP functions, click the Answer Wizard in Help and typehow do i find an exact match with a lookup Microsoft Excel 4.0 and 5.0"User's Guide 2," version 4.0, Chapter 1, "Creating a Lookup Table""User's Guide," version 5.0, Chapter 20, "Using Functions to Look Up Values in a List" For more information about LOOKUP functions, click the Search button in Help and type: lookup functions Additional query words: 5.0 5.00a 5.00c 97 XL97 8.00 XL98
Keywords : xlformula |
Last Reviewed: December 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |