intermediate 5 min read

Case-Sensitive VLOOKUP in Google Sheets

Learn how to do a case-sensitive VLOOKUP in Google Sheets using INDEX, MATCH, and EXACT. Step-by-step formula examples, common errors, and best practices.

SB

Sheets Bootcamp

March 14, 2026 ยท Updated July 18, 2026

Reviewed by Ryan

Quick Answer

VLOOKUP ignores case, so use =INDEX(C2:C12, MATCH(TRUE, ARRAYFORMULA(EXACT(A2:A12, F2)), 0)) for a case-sensitive lookup. EXACT compares each value in A2:A12 to F2 with case sensitivity, MATCH finds the first TRUE, and INDEX returns the value from column C in that row. With sku-101 in F2, the formula skips the SKU-101 row.

A case-sensitive VLOOKUP in Google Sheets requires a workaround because VLOOKUP ignores letter case by default. If your data contains values like โ€œSKU-101โ€ and โ€œsku-101,โ€ VLOOKUP treats them as identical and returns the first match it finds.

This guide shows you how to build a case-sensitive lookup using INDEX, MATCH, and EXACT. You will get a formula that distinguishes uppercase from lowercase, with step-by-step instructions and error fixes.

In This Guide

Why VLOOKUP Ignores Case

VLOOKUP in Google Sheets is case-insensitive by design. When you search for โ€œsku-101,โ€ it matches โ€œSKU-101,โ€ โ€œSku-101,โ€ or any other capitalization variant. Google Sheets does not offer a built-in argument to change this behavior.

This creates a problem when your data has entries that differ only by case. Consider a product inventory where โ€œSKU-101โ€ and โ€œsku-101โ€ refer to different items. A standard VLOOKUP returns the first match from top to bottom, regardless of capitalization.

Formula
=VLOOKUP("sku-101", A2:C12, 2, FALSE)

This formula returns โ€œMagnifying Glassโ€ (the first row with any case variation of โ€œsku-101โ€) even if you intended to match the lowercase version on a different row.

Important

VLOOKUP has no optional argument for case sensitivity. You cannot fix this by changing the last parameter. The workaround requires a different set of functions.

The Fix: INDEX + MATCH + EXACT

The solution combines three functions:

  • EXACT(text1, text2) compares two strings with case sensitivity. It returns TRUE only when every character matches, including uppercase and lowercase letters.
  • MATCH(search_key, range, type) finds the position of a value in a range. When paired with EXACT, it locates the row where the case-sensitive match occurs.
  • INDEX(range, row) returns the value at a specific position in a range.

The combined formula:

Formula
=INDEX(return_range, MATCH(TRUE, ARRAYFORMULA(EXACT(lookup_range, lookup_value)), 0))

Here is how each piece works:

ComponentWhat It Does
EXACT(A2:A12, F2)Compares each cell in A2:A12 against F2 with case sensitivity. Returns an array of TRUE/FALSE values.
ARRAYFORMULA(...)Forces EXACT to evaluate every cell in the range, not just the first one.
MATCH(TRUE, ..., 0)Finds the position of the first TRUE in the array (the case-sensitive match).
INDEX(C2:C12, ...)Returns the value from column C at the matched position.

Note

The EXACT function is the key ingredient. On its own, =EXACT("sku-101", "SKU-101") returns FALSE because the cases differ. =EXACT("SKU-101", "SKU-101") returns TRUE.

Try it yourself

Question 1 of 3

3 quick questions. No account needed.

In B12, return the Member for the code in B11, matching capital letters exactly. Use INDEX, MATCH and EXACT.

A
B
C
D
E
F
G
H
I
J
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Code
Member
Locker
Plan
rx9
Priya
14
Basic
RX9
Marco
22
Plus
Lm3
Tess
7
Basic
lm3
Omar
31
Plus
LM3
Grace
18
Gold
qz5
Felix
9
Gold
Qz5
Hana
26
Basic
bv2
Leo
3
Plus
Look up
lm3
Result
B12

Step-by-Step: Case-Sensitive Lookup

We will use the product inventory data. Imagine the sheet has both โ€œSKU-101โ€ and โ€œsku-101โ€ as Product IDs pointing to different items. The goal: look up the Category for โ€œsku-101โ€ specifically, not its uppercase counterpart.

1

Set up your data with mixed-case Product IDs

Your data is in columns A through C. Column A has Product IDs, column B has Product Names, and column C has Categories. Enter the lookup value โ€œsku-101โ€ in cell F2.

Product inventory with mixed-case IDs and lookup value in F2

2

Enter the INDEX MATCH EXACT formula

Select cell G2 and enter:

Formula
=INDEX(C2:C12, MATCH(TRUE, ARRAYFORMULA(EXACT(A2:A12, F2)), 0))

EXACT checks each Product ID in A2:A12 against the value in F2. Because F2 contains โ€œsku-101โ€ in lowercase, EXACT returns TRUE only for the row where column A also has โ€œsku-101โ€ in lowercase. MATCH finds that row position, and INDEX returns the Category from column C.

INDEX MATCH EXACT formula entered in G2 with formula bar visible

3

Verify the case-sensitive result

The formula returns the Category for the lowercase โ€œsku-101โ€ row. If you change F2 to โ€œSKU-101โ€ (uppercase), the result updates to show the Category for the uppercase row instead. This confirms the lookup is case-sensitive.

Case-sensitive result showing correct category for lowercase sku-101

Tip

You can replace C2:C12 with any column range to return a different field. Use B2:B12 to return the Product Name, or D2:D12 for the Price.

Examples

Example 1: Case-Sensitive Lookup Without ARRAYFORMULA

In some legacy guides, you will see the formula entered without ARRAYFORMULA and confirmed with Ctrl+Shift+Enter instead:

Formula
=INDEX(C2:C12, MATCH(TRUE, EXACT(A2:A12, F2), 0))

Press Ctrl+Shift+Enter after typing this formula. Google Sheets wraps it in curly braces {} to indicate it is processing as an array. The result is identical. However, using ARRAYFORMULA is the recommended approach because it works without a special keyboard shortcut.

Note

If you press Enter instead of Ctrl+Shift+Enter (without ARRAYFORMULA), the formula evaluates EXACT against only the first cell in the range. This returns an incorrect result or #N/A.

Example 2: Case-Sensitive Price Lookup

To return the Price for a specific case-sensitive Product ID:

Formula
=INDEX(D2:D12, MATCH(TRUE, ARRAYFORMULA(EXACT(A2:A12, "SKU-108")), 0))

This returns $89.99, the price for โ€œSKU-108โ€ (Disguise Kit). If the sheet had a row with โ€œsku-108โ€ pointing to a different item, this formula would skip it and match only the uppercase version.

Common Errors and How to Fix Them

#N/A Error

The lookup value does not match any cell in the range when compared with exact case. This happens when:

  • The capitalization is wrong. Double-check every character. โ€œSku-101โ€ does not match โ€œSKU-101โ€ or โ€œsku-101.โ€
  • Extra spaces exist. A trailing space makes โ€œSKU-101 โ€ different from โ€œSKU-101.โ€ Use =TRIM(F2) inside the formula: =INDEX(C2:C12, MATCH(TRUE, ARRAYFORMULA(EXACT(A2:A12, TRIM(F2))), 0)).
  • The lookup range is wrong. Verify that A2:A12 covers all rows with data.

#VALUE! Error

This appears when the return range and lookup range have different sizes. Make sure both ranges have the same number of rows. If the lookup range is A2:A12 (11 rows), the return range must also be 11 rows, such as C2:C12.

Tip

Wrap the formula in IFERROR to handle missing matches gracefully: =IFERROR(INDEX(C2:C12, MATCH(TRUE, ARRAYFORMULA(EXACT(A2:A12, F2)), 0)), "No case match").

Tips and Best Practices

  1. Always use ARRAYFORMULA. It is more reliable than Ctrl+Shift+Enter and makes the formula self-documenting. Anyone reading it can see the array evaluation is intentional.

  2. EXACT is strict about every character. Leading spaces, trailing spaces, and non-breaking spaces all cause mismatches. Clean your data with TRIM before running case-sensitive lookups.

  3. Combine with data validation. If your Product IDs follow a specific case pattern (all uppercase, for example), use data validation to enforce it at entry time. Prevention beats troubleshooting.

  4. Use named ranges for readability. Replace A2:A12 with a named range like ProductIDs. The formula becomes =INDEX(Categories, MATCH(TRUE, ARRAYFORMULA(EXACT(ProductIDs, F2)), 0)), which is easier to read and maintain.

  5. Consider INDEX MATCH for all lookups. Once you are comfortable with this pattern, INDEX MATCH handles case sensitivity, left-side lookups, and multiple criteria. It covers gaps that VLOOKUP cannot.

Frequently Asked Questions

Is VLOOKUP case-sensitive in Google Sheets?
No. VLOOKUP treats uppercase and lowercase letters as identical. It considers SKU-101 and sku-101 the same value. To match case, use INDEX, MATCH, and EXACT together.
How do I make a case-sensitive lookup in Google Sheets?
Use the formula =INDEX(return_range, MATCH(TRUE, EXACT(lookup_range, lookup_value), 0)). EXACT compares each cell with case sensitivity, MATCH finds the TRUE result, and INDEX returns the corresponding value.
Do I need Ctrl+Shift+Enter for the EXACT MATCH formula?
Not in Google Sheets. Wrap the formula in ARRAYFORMULA instead: =INDEX(C2:C12, MATCH(TRUE, ARRAYFORMULA(EXACT(A2:A12, F2)), 0)). This handles the array evaluation without a keyboard shortcut.
Why does my case-sensitive lookup return #N/A?
The lookup value does not match any cell in the range when compared with case sensitivity. Check for extra spaces, confirm the exact capitalization, and verify the lookup range is correct.

You read about VLOOKUP. Now type it.

Unit 1 of the course is free: 6 short lessons in a grid that checks every formula. They teach the Google Sheets skills you'll actually use.

Start the course free

First 6 lessons free. No card needed. See plans

Keep going

Continue learning

Unit 2 is next. Get full access

Practice this in the app

Practice VLOOKUP

Spot an error on this page? Tell us.

First 6 lessons free. No credit card required.

Start the course free
Continue learning

Cookie policy ยท Privacy policy