XLOOKUP / Sales Analyst

Retrieving Product Prices for Quotes

A sales analyst needs to quickly find the price of a product given its Product ID to generate accurate quotes for customers. Manually searching through a large product catalog is time-consuming and prone to errors, impacting sales efficiency.

formula.xlsx
=XLOOKUP("P002",A2:A5,C2:C5,"Product Not Found")

How it works: This XLOOKUP formula efficiently searches for the specified Product ID ("P002") within the 'ProductID' column (A2:A5). Once found, it retrieves and returns the corresponding price from the 'Price' column (C2:C5). The 'if_not_found' argument ensures that a clear message is displayed instead of an error if the product ID doesn't exist, improving user experience.

Data Setup

ProductID ProductName Price
P001 Laptop Pro 1200
P002 Monitor X 300
P003 Keyboard Z 75
P004 Mouse M 25

Step-by-Step Guide

1

Identify the lookup value, which is the Product ID you want to find (e.g., "P002").

2

Specify the lookup array, which is the range containing all Product IDs (A2:A5).

3

Specify the return array, which is the range containing the corresponding Prices (C2:C5).

4

Optionally, add a value for 'if_not_found' (e.g., "Product Not Found") to display if the Product ID is not found.

Explore More