ShareYourGroupShareYourGroupGoogle Sheets

Guides

Google Sheets and Excel: where formulas differ

Most formulas work the same in Google Sheets and Excel. SUM, IF, VLOOKUP, COUNTIF and the date and text functions are shared. The differences matter when a file crosses from one to the other, or when you follow instructions written for the other program. This guide lists them from the Sheets user's side.

It is written from general knowledge of both programs. Each changes often, so check anything important on your own copy.

Only in Google Sheets

FunctionJob
QUERYselect, filter, sort and total with one instruction
ARRAYFORMULAmake a formula fill a column
IMPORTRANGEread a range from another file
IMPORTHTML, IMPORTXML, IMPORTDATAread data from web pages
GOOGLEFINANCEprices and currency rates
GOOGLETRANSLATEmachine translation
SPLIT and JOINdivide and join text
REGEXMATCH, REGEXEXTRACT, REGEXREPLACEpattern matching (recent Microsoft 365 has its own versions)
SORTN, COUNTUNIQUE, FLATTENtop rows, distinct counts, stacking
SPARKLINEa chart in a cell, as a formula
ISEMAIL, ISURLformat checks

When a Sheets file is downloaded as an Excel file, formulas using these keep only their last values or show errors.

Only in Excel

Arrays

In modern Excel a formula given a range spills by itself: =C2:C9*2. In Sheets, ordinary formulas need the ARRAYFORMULA wrapper. Functions that are arrays by nature, such as FILTER, SORT, UNIQUE and QUERY, spill in both.

Excel refers to a spilled result with a hash, as in H2#. Sheets has no such sign. Use an open-ended range such as H2:H.

A blocked spill shows #SPILL! in Excel and #REF! in Sheets.

Open-ended ranges

A2:A, meaning from A2 to the bottom, is valid in Sheets and not in Excel. On conversion to Excel it becomes a fixed range.

Same name, different shape

FunctionGoogle SheetsExcel
FILTERconditions listed with commas; no "if empty" argumentone condition argument, multiply for "and"; third argument for "if empty"
SORTSORT(range, column, TRUE or FALSE, ...); the sort column may be an outside rangeSORT(array, index, 1 or -1); outside range needs SORTBY
UNIQUEcase sensitiveignores case
CONCATexactly two valuesany number of values and ranges
IFERRORsecond argument optionalsecond argument required
ROUNDplaces optionalplaces required
DATEDIFdocumentedworks, but undocumented
XLOOKUPsame argumentssame arguments

Behaviour that differs quietly

Bringing an Excel file into Sheets

Upload it to Google Drive and open it. You can edit it in place as an Excel file, or choose File, Save as Google Sheets to convert it. Ordinary formulas convert. Check for:

Sending a Sheets file to an Excel user

File, Download, Microsoft Excel. Before sending:

  1. Look for the Sheets-only functions in the table above. Where the receiver needs live figures, replace them, for example QUERY with SUMIFS. Where they only need the numbers, copy the results and paste values only.
  2. Replace IMPORTRANGE with the actual data.
  3. Open the downloaded file, if you can, and look for error cells.
  4. Compare a few totals with the original.

Working alongside Excel users

If files will go back and forth for a long time, stay with the shared functions: SUMIFS, COUNTIFS, VLOOKUP or INDEX and MATCH, IF, TEXT and the date functions. They behave the same in both, and nobody has to repair anything.

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