Zero Signup ToolsFree browser tools

Developer Tools

Spreadsheet Formula Builder

Build Excel and Google Sheets formulas with labeled fields. IF, VLOOKUP, INDEX/MATCH, SUMIF, TEXTJOIN, QUERY, ARRAYFORMULA, FILTER, and more.

Logical - Excel and Google Sheets

IF(logical_test, value_if_true, value_if_false)

Returns one value when a condition is true and another when it is false.

  1. Any expression that evaluates to TRUE or FALSE.

  2. Returned when the test is TRUE. Wrap text in double quotes.

  3. Returned when the test is FALSE. Wrap text in double quotes.

Quick reference for every supported function

FunctionCategoryWhereSignature
LogicalExcel + SheetsIF(logical_test, value_if_true, value_if_false)
LogicalExcel + SheetsIFERROR(value, value_if_error)
LogicalExcel + SheetsIFNA(value, value_if_na)
LogicalExcel + SheetsIFS(test1, value1, [test2, value2], ...)
LogicalExcel + SheetsAND(condition1, [condition2], ...)
LogicalExcel + SheetsOR(condition1, [condition2], ...)
LogicalExcel + SheetsNOT(logical)
LookupExcel + SheetsVLOOKUP(search_key, range, column_index, [is_sorted])
LookupExcel + SheetsHLOOKUP(search_key, range, row_index, [is_sorted])
LookupExcel + SheetsXLOOKUP(search_key, lookup_range, return_range, [if_not_found], [match_mode], [search_mode])
LookupExcel + SheetsINDEX(range, row, [column])
LookupExcel + SheetsMATCH(search_key, range, [match_type])
LookupExcel + SheetsINDEX(return_range, MATCH(search_key, lookup_range, 0))
LookupExcel + SheetsCHOOSE(index, value1, [value2], ...)
TextExcel + SheetsCONCATENATE(text1, [text2], ...)
TextExcel + SheetsTEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)
TextExcel + SheetsLEFT(text, [num_chars])
TextExcel + SheetsRIGHT(text, [num_chars])
TextExcel + SheetsMID(text, start, length)
TextExcel + SheetsLEN(text)
TextExcel + SheetsTRIM(text)
TextExcel + SheetsUPPER(text)
TextExcel + SheetsLOWER(text)
TextExcel + SheetsPROPER(text)
TextExcel + SheetsSUBSTITUTE(text, old_text, new_text, [occurrence])
MathExcel + SheetsSUM(value1, [value2], ...)
MathExcel + SheetsSUMIF(range, criterion, [sum_range])
MathExcel + SheetsSUMIFS(sum_range, range1, criterion1, [range2, criterion2], ...)
MathExcel + SheetsCOUNTIF(range, criterion)
MathExcel + SheetsCOUNTIFS(range1, criterion1, [range2, criterion2], ...)
MathExcel + SheetsAVERAGEIF(range, criterion, [average_range])
MathExcel + SheetsROUND(value, places)
MathExcel + SheetsROUNDUP(value, places)
MathExcel + SheetsROUNDDOWN(value, places)
MathExcel + SheetsABS(value)
MathExcel + SheetsMIN(value1, [value2], ...)
MathExcel + SheetsMAX(value1, [value2], ...)
MathExcel + SheetsAVERAGE(value1, [value2], ...)
DateExcel + SheetsTODAY()
DateExcel + SheetsNOW()
DateExcel + SheetsDATE(year, month, day)
DateExcel + SheetsDATEDIF(start, end, unit)
DateExcel + SheetsEOMONTH(start_date, months)
DateExcel + SheetsNETWORKDAYS(start_date, end_date, [holidays])
DateExcel + SheetsWEEKDAY(date, [type])
Sheets onlySheets onlyARRAYFORMULA(array_formula)
Sheets onlySheets onlyQUERY(data, query, [headers])
Sheets onlySheets onlyFILTER(range, condition1, [condition2], ...)
Sheets onlySheets onlySORT(range, sort_column, is_ascending, [sort_column2, is_ascending2], ...)
Sheets onlySheets onlyUNIQUE(range)
Sheets onlySheets onlySPLIT(text, delimiter, [split_by_each], [remove_empty_text])
Sheets onlySheets onlyJOIN(delimiter, value1, [value2], ...)
Sheets onlySheets onlyIMPORTRANGE(spreadsheet_url, range_string)
Sheets onlySheets onlyGOOGLETRANSLATE(text, [source_language], [target_language])

How to use

  1. Pick a function from the searchable picker. Use the category filters (Logical, Lookup, Text, Math, Date, Sheets only) or type a name like vlookup, sum if, or query.
  2. Fill in each labeled argument. Range fields take cell references like A2:A100 or Sheet!A:A; criteria fields take quoted conditions like ">100" or "shoes".
  3. Click Add another argument for variadic functions (SUMIFS, COUNTIFS, IFS, TEXTJOIN, AND, OR, CHOOSE) to add more value or condition pairs.
  4. Watch the Generated formula panel update live. Optional arguments are dropped when blank; required slots show a <name> placeholder so you can fix them.
  5. Click Copy formula and paste straight into your cell. The leading equals sign is included.
  6. Need a starting point? Click Reset to example to reload the worked example, or use Copy example to copy the canonical example for the current function.

About this tool

Spreadsheet Formula Builder helps you write correct Excel and Google Sheets formulas without flipping between docs tabs. Pick a function from the searchable picker (IF, VLOOKUP, INDEX, MATCH, XLOOKUP, SUMIF, SUMIFS, COUNTIF, COUNTIFS, AVERAGEIF, TEXTJOIN, CONCATENATE, LEFT, RIGHT, MID, LEN, TRIM, UPPER, LOWER, PROPER, SUBSTITUTE, IFERROR, IFNA, IFS, AND, OR, NOT, CHOOSE, ROUND, ROUNDUP, ROUNDDOWN, ABS, MIN, MAX, AVERAGE, TODAY, NOW, DATE, DATEDIF, EOMONTH, NETWORKDAYS, WEEKDAY, and the Sheets-only family ARRAYFORMULA, QUERY, FILTER, SORT, UNIQUE, SPLIT, JOIN, IMPORTRANGE, GOOGLETRANSLATE), fill in each labeled argument with cell references or values, and the live preview shows the composed formula with the leading equals sign so it pastes straight into a cell. Optional arguments are dropped automatically when blank, required slots show a placeholder so you can spot what is missing, and variadic functions like SUMIFS, COUNTIFS, IFS, TEXTJOIN, AND, OR, and CHOOSE accept as many extra pairs as you want with one click. Every function carries a one-line summary, a worked example, its canonical signature, and an argument legend that maps each input color to its kind (range, criterion, text, number, boolean) so you can scan a complex formula fast. Search the picker by function name, summary, or signature, or filter by category (Logical, Lookup, Text, Math, Date, Sheets only) to quickly jump to the function you need. A quick reference table at the bottom of the page lists every supported function with its signature and where it works (Excel + Sheets or Sheets only), making the page useful as a stand-alone cheat sheet even when you already know the formula you want to write. Everything runs locally in your browser. The cell references, criteria, search keys, and example data you type never leave your device.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsDeveloper Tools