If you live in Google Sheets, XLOOKUP is the lookup function you reach for when VLOOKUP keeps getting in your way. It searches in any direction, works with both rows and columns, supports wildcards, and lets you control what happens when there’s no match. That means cleaner dashboards, fewer fragile helper columns, and fewer “why is this #N/A again?” moments. But once you start wiring XLOOKUP into live business workflows—pricing sheets, lead routing, inventory syncs—the real bottleneck isn’t the function, it’s the human. Someone still has to open Sheets, paste data, maintain ranges, drag formulas, and sanity‑check results. This is where an AI computer agent shines. Instead of you doing every lookup by hand, the agent can open Google Sheets, set up and copy XLOOKUP formulas, refresh source data, validate errors, and hand you clean tables. You keep the logic; the agent does the clicking, typing, and updating at machine speed.
If you run a business, agency, or sales team, you’ve probably had this day: a giant Google Sheet with leads, prices, SKUs, or campaign results, and someone says, “Can you just match all of these columns up?” Hours later, you’re still dragging formulas and fixing #N/A errors. XLOOKUP is the hero function that makes those joins elegant. An AI computer agent is the assistant that makes them effortless.
Below are the top ways to use XLOOKUP in Google Sheets—first manually, then at scale with an AI agent like Simular doing the computer work for you.
Use it when: You want to pull one value from a clean lookup table.
Example: Find a customer’s plan from a list.
Steps:
E2 contains a customer ID.F2.=XLOOKUP(E2, A2:A100, C2:C100)
E2 = search_key (customer ID)A2:A100 = lookup_range (all IDs)C2:C100 = result_range (plan names)Pros (manual):
Cons (manual):
Use it when: Data isn’t perfect and some lookups will fail.
Steps:
=XLOOKUP(E2, A2:A100, C2:C100, "Not found")
Now instead of #N/A, you see "Not found" for missing keys.
Pros:
Cons:
Use it when: Pricing, discounts, or commissions depend on ranges.
Scenario: You have spend tiers in A2:A10 and discount rates in B2:B10. The order total is in E2.
Steps:
F2, enter:=XLOOKUP(E2, A2:A10, B2:B10, , -1)
-1 tells XLOOKUP to use the closest smaller value if there’s no exact match.Pros:
Cons:
Use it when: Names, SKUs, or campaign tags don’t match perfectly.
Scenario: A column with "Peterson, Amy" and you only have "Peterson".
Steps:
E2) type the partial value, e.g. Peterson.=XLOOKUP("*" & E2, A2:A100, D2:D100, "No match", 2)
"*" & E2 adds a wildcard before the surname.2 in match_mode turns on wildcard search.Pros:
Cons:
Manual XLOOKUP is great—until:
This is where you need something better than another helper column. You need an assistant that knows how to:
That’s the job of an AI computer agent.
Simular’s AI agents behave like a focused teammate living inside your computer. Instead of you doing every click and keystroke, the agent can:
Leads_Master Sheet, pull new leads from Tab A, match domains to pricing tiers on Tab B with XLOOKUP, and populate Tier + Discount columns.”Manual XLOOKUP (You in Sheets)
AI-Agent XLOOKUP (Simular Doing the Work)
The best setup isn’t choosing between you and the agent. It’s this split:
You stay the strategist. The agent becomes the operator.