Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Spreadsheet formula builder

Build XLOOKUP, VLOOKUP, INDEX/MATCH, SUMIFS, COUNTIFS and IF formulas for your own table and see the answer each one returns.

How to use

  1. Paste your table with its header row, or keep the example. Say which cell the header row starts in, so the cell ranges in the formulas match your sheet.
  2. Lookup: say what to look for, in which column, and which column to return. You get XLOOKUP, INDEX/MATCH and, where it can work, VLOOKUP, plus the answer they return and the row it comes from.
  3. SUMIFS / COUNTIFS: pick the function and the column to add up, then up to three criteria. Matching rows are marked in the table.
  4. IF / IFS: write rules that are checked from the top, and a result for when none match. You get a nested IF and the same logic as IFS, and can try a test value.
  5. Copy a formula into your spreadsheet. If your spreadsheet uses semicolons between arguments, choose the semicolon separator first.

Keyboard and touch

TabMove between the table, settings, tabs and buttons
EnterBuild the formula (in any one-line box)

Tips

  • VLOOKUP counts columns from the left of its range and breaks if someone inserts a column; XLOOKUP and INDEX/MATCH name the return column directly.
  • "Exact or the next smaller" is for price bands and tax tables: look up 7 in bands 0, 5, 10 and you get the row for 5. VLOOKUP and MATCH need the column sorted from small to large for this.
  • In the example, SUMIFS of Sold where Region is North and Price is at least 10 adds the teapot and kettle: 12 + 7 = 19.
  • IF rules are checked from the top: put ">= 90" before ">= 75", or every high score stops at the first rule.

About this tool

The formulas use the function names and argument order common to the big spreadsheet programs (XLOOKUP and IFS need a recent version). Answers are worked out by our own small evaluator written from the functions' public documentation: text compares without regard to case, numbers compare as numbers, criteria accept the comparison signs and the * and ? wildcards (~ before a wildcard makes it literal), and a lookup that finds nothing gives #N/A. Real programs can differ in corner cases such as dates, unsorted approximate lookups and locale number formats, so check the answer in your sheet. Microsoft Excel, Google Sheets and LibreOffice Calc are trademarks of their owners; this tool is not affiliated with or endorsed by them. Your table stays in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product