XLOOKUP / Small Business Owner

Find Price by Product Name (Case Insensitive)

As a small business owner, I often need to quickly look up the price of a product for a customer or to update inventory. My product list might have inconsistent capitalization (e.g., 'Widget A' vs 'widget a'), and I need a reliable way to find the price even if my search term's capitalization doesn't exactly match the database.

formula.xlsx
=XLOOKUP(LOWER(D2), LOWER(A2:A5), B2:B5, "Product Not Found", 0)

How it works: This formula works by converting both your search term (`D2`) and the entire lookup range of product names (`A2:A5`) to lowercase using the `LOWER()` function. This creates a temporary, case-insensitive comparison environment for XLOOKUP. `XLOOKUP` then performs an exact match (`0`) on these lowercase values, returning the corresponding price from the `B2:B5` range. If no match is found, it will display 'Product Not Found', preventing errors.

Data Setup

Product Name Price Search Product Result
Widget A 10.50 widget a 10.50
Gadget B 25.00

Step-by-Step Guide

1

Prepare your product data: Ensure your product names are in one column (e.g., A2:A5) and their corresponding prices in an adjacent column (e.g., B2:B5).

2

Enter the product name you want to search for (e.g., 'widget a') into a designated search cell (e.g., D2).

3

In the cell where you want the price to appear (e.g., E2), type the formula: `=XLOOKUP(LOWER(D2), LOWER(A2:A5), B2:B5, "Product Not Found", 0)`

4

Press Enter. The formula will return the price of the product, regardless of the capitalization used in your search term or the original product list.

Explore More