XLOOKUP / Inventory Specialist

Verifying Current Stock Levels for Orders

An inventory specialist needs to quickly check the current stock level of a specific item before placing a new order or confirming availability for a customer. Manual checks are slow and prone to errors, especially with a large inventory, potentially leading to overstocking or stockouts.

formula.xlsx
=XLOOKUP("ITM004",A2:A5,C2:C5,"Item Not in Inventory",0)

How it works: This XLOOKUP formula efficiently finds the specified Item Code ("ITM004") within the 'ItemCode' column (A2:A5). It then returns its corresponding 'StockLevel' from column C (C2:C5). The 'if_not_found' argument ensures that a clear message is displayed if the item code isn't found, preventing confusion. The 'match_mode' of 0 ensures an exact match, crucial for accurate inventory checks.

Data Setup

ItemCode ItemName StockLevel
ITM001 Widget A 150
ITM002 Gadget B 75
ITM003 Doodad C 200
ITM004 Thingamajig D 30

Step-by-Step Guide

1

Input the Item Code you want to search for (e.g., "ITM004").

2

Select the lookup array, which is the range containing all Item Codes (A2:A5).

3

Select the return array, which is the range containing the corresponding Stock Levels (C2:C5).

4

Provide a custom message for 'if_not_found' (e.g., "Item Not in Inventory") for items not found.

5

Optionally, specify the 'match_mode' as 0 for an exact match (though it's the default).

Explore More