ShareYourGroupShareYourGroupExcel Formulas

Guides

Excel and Google Sheets: where formulas differ

Excel and Google Sheets understand almost the same formula language. A sheet full of SUM, IF, VLOOKUP and COUNTIF works in both without a change. The differences are few, and they matter mostly when a file is moved from one program to the other. This page lists the ones worth knowing.

It is written from general knowledge of the two programs and from testing the Excel side. Both programs change often, so check any point that matters on your own version.

What is the same

The everyday functions carry the same names and arguments in both programs:

So are the basics: the equals sign, the operators, the dollar sign for fixed references, and the error values.

Functions only in Google Sheets

FunctionWhat it does
QUERYselects, filters, groups and sorts a range using a query language similar to SQL
ARRAYFORMULAmakes an ordinary formula work on a whole range at once
IMPORTRANGEbrings in a range from another spreadsheet file
IMPORTHTML, IMPORTXML, IMPORTDATApull tables and data from web pages
GOOGLEFINANCEshare prices and currency rates
GOOGLETRANSLATEtranslates text
REGEXMATCH, REGEXEXTRACT, REGEXREPLACEpattern matching in text
SPLITsplits text at a separator into several cells
JOINjoins a range with a separator
SPARKLINEa tiny chart inside a cell, made by a formula
IMAGEshows a picture from a web address in a cell

A workbook that uses these loses them when saved as an Excel file. The cells keep their last values, or show an error.

Functions and features only in Excel

Arrays: the biggest practical difference

In Excel 2021 and Microsoft 365, a formula that produces several results spills into neighbouring cells by itself. =C2:C9*2 typed in one cell fills eight.

In Google Sheets, most ordinary formulas need to be wrapped in ARRAYFORMULA to do that: =ARRAYFORMULA(C2:C9*2). Pressing Ctrl, Shift and Enter after typing adds the wrapper for you. Functions that are array functions by nature, such as FILTER, SORT and UNIQUE, spill in Sheets without it.

Referring to a spilled range also differs. Excel has the hash sign: H2# means everything that the formula in H2 spilled. Sheets has no such sign. People there use open-ended ranges such as H2:H.

Open-ended ranges

Sheets accepts a range with no end row, such as A2:A, meaning "from A2 to the bottom of the column". Excel does not accept that form. The nearest Excel equivalents are a whole column, A:A, or a table column.

FILTER and SORT have different shapes

TaskExcelGoogle Sheets
Rows meeting two conditions=FILTER(A2:F13,(C2:C13="North")*(D2:D13="Bag"))=FILTER(A2:F13,C2:C13="North",D2:D13="Bag")
A message when nothing matchesthird argument of FILTERwrap in IFERROR(..., "None")
Sort by the third column, descending=SORT(A2:F13,3,-1)=SORT(A2:F13,3,FALSE)
Sort by a range outside the dataSORTBYSORT accepts a range as the sort column

Excel multiplies conditions together. Sheets lists them with commas. Excel's sort direction is 1 or -1. Sheets uses TRUE or FALSE.

Smaller differences

Separators and regional settings

In both programs, the character between arguments depends on the region. Where a comma is the decimal mark, as in much of Europe, formulas use a semicolon between arguments: =IF(A1>5;"Yes";"No"). In India, the United Kingdom and the United States it is a comma. A formula copied from a website may need its separators changed. In Excel this follows the Windows regional settings. In Sheets it follows the spreadsheet's locale, under File, Settings.

Moving a file between the two

Excel to Sheets. Upload the file to Google Drive and open it. Ordinary formulas convert. Macros, Power Query, and some charts and formatting do not. Recent Microsoft 365 functions that Sheets lacks show errors.

Sheets to Excel. Use File, Download, Microsoft Excel. Ordinary formulas convert. The Sheets-only functions in the table above are replaced by their last values or by errors. ARRAYFORMULA wrappers are usually handled, since modern Excel spills by itself.

After any move, look for cells showing #NAME?, compare a few totals with the original, and check the dates.

Shortcuts and working habits

Which to learn?

The skills carry across. Someone who can write IF, VLOOKUP, SUMIFS and a date formula in one program can do it in the other within an hour. Learn on whichever one your school, college or office uses, and keep this page for the day you switch.

This is an independent help site. It is not connected with or approved by Microsoft. Excel and Microsoft 365 are trademarks of Microsoft Corporation, named here only to say which program a formula is for. The people and figures in the sample sheets are made up.