Contact

MAP Function in Google Sheets: Syntax, Examples & Compatibility

Array Intermediate Google Sheets

Learn how to transform each element of an array using a small named LAMBDA rule in Google Sheets. Includes syntax, two verified-by-reasoning results, troubleshooting and portability notes.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: transform each element of an array using a small named LAMBDA rule in Google Sheets. The reproducible examples below use explicit values so the formula’s meaning is testable without a large workbook.

Evidence: The function name and syntax are documented in the linked vendor function reference. Expected outputs were independently reasoned or checked outside the application. These are not native Google Sheets test results. A guide being published here does not certify every software release or file-import scenario.

Availability and version history

  • Introduced: Announced August 24, 2022, with extended rollout expected to finish by September 26, 2022. These are service rollout dates, not desktop release numbers. Google release announcement.
  • Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
  • Checked: October 14, 2026; official MAP reference. Documentation check, not a new native test; existing example-verification notes retain their scope.

Syntax and arguments

=MAP(array1, [array2, ...], LAMBDA)

Each value is passed to the LAMBDA expression. Provide one LAMBDA parameter per input array.

Best use case: Transform each element of an array using a small named LAMBDA rule.

Set up the example sheet

Enter A2=2, A3=3, A4=5 as quantities requiring a doubled order estimate.

Enter the formula in an unused cell. For a formula returning several values, leave an unobstructed area where those values can expand. These formulas use comma argument separators in a typical English-language locale; commas or semicolons inside quoted text are data, not argument separators. Adapt the separator if your regional settings require it.

Worked example 1: MAP with known input

=MAP(A2:A4,LAMBDA(q,q*2))

Expected output: vertical values 4, 6, 10.

Each quantity is passed to the inline function and multiplied by two.

Worked example 2: a second MAP case

=MAP(A2:A4,LAMBDA(q,q+1))

Expected output: vertical values 3, 4, 6.

The LAMBDA adds a fixed one-unit safety allowance to every entry.

Compare both results before replacing literal values or short sample ranges with your own workbook data. For a spilling formula, compare every output cell, not only the top-left result.

Advanced example: combine matching entries from two arrays

Keep A2:A4 as 2, 3, 5, and enter unit prices B2=10, B3=4, B4=7. In a clear three-cell column, enter:

=MAP(A2:A4,B2:B4,LAMBDA(q,price,q*price))

The expected results are 20, 12, 35, one per row. The first LAMBDA name receives a quantity; the second receives the corresponding price. MAP pairs positions rather than searching for matching product identifiers.

The input arrays must have matching dimensions. Google documents errors for incompatible array sizes and #N/A for a LAMBDA name count that does not match the number of arrays. Each mapped item must produce one value; returning a nested array, such as several SPLIT fields per item, is unsupported. Reduce that result to one value or use a different table-building approach.

Practical advice and troubleshooting

When this formula helps: MAP makes a transformation rule explicit; ARRAYFORMULA(A2:A4*2) may be shorter for a simple arithmetic operation.

Important edge case: The LAMBDA parameter count must agree with the number of input arrays, and a LAMBDA must return a value for each input item.

If the result differs, first verify the text-versus-number types of the input cells, the argument separators for your locale, and the range size. For dynamic arrays, inspect occupied cells in the output area. After importing a file, check function names and the destination application’s support as well as the input data.

Compatibility and version considerations

Microsoft also documents MAP in Excel, including Microsoft 365 and Excel 2024 on Windows and Mac. Compare each product’s argument and error rules when migrating; support is not established for older Excel versions by that page.

Google Sheets is a rolling service; record the check date and spreadsheet locale. Verify the destination application and release separately when exporting a workbook.

Function availability and parameter behavior must be judged for the specific application and release; a function documented in one spreadsheet does not automatically work in another.

Editorial verification: Direct function documentation reviewed October 14, 2026. The two example outputs are independently reasoned; no native application run, screenshot, or version-specific output is claimed. Review the editorial testing standards if you require stronger proof before importing a workbook.