What is MAP in Google Sheets?

When to use it

Use MAP to clean a column, combine two aligned lists, or apply conditional logic per cell with readable LAMBDA bodies.

When to skip it

Skip MAP when whole-row or whole-column context is required. Use BYROW or BYCOL instead.

How it works

  1. 1

    Pass the source array as the first MAP argument.

  2. 2

    Add LAMBDA(param, expression) as the last argument.

  3. 3

    For two lists, MAP(A2:A, B2:B, LAMBDA(a, b, a+b)) combines pairs.

  4. 4

    Arrays must be the same size or MAP returns errors.

  5. 5

    Nest LET inside LAMBDA for multi-step per-cell math.

  6. 6

    Compare results to your old drag-fill on ten rows before rolling out.

Examples in Google Sheets

Clean phone text

=MAP(A2:A, LAMBDA(v, REGEXREPLACE(v, "[^0-9]", ""))) strips non-digits per cell.

Add aligned columns

=MAP(A2:A, B2:B, LAMBDA(x, y, x+y)) sums pairs without dragging.

Tier label

=MAP(C2:C, LAMBDA(n, IF(n>=90, "A", IF(n>=80, "B", "C")))) assigns letter grades.

Common mistakes

  • Mismatched range lengths between MAP inputs.
  • Using MAP for row-wide logic that needs BYROW.
  • Over-nesting MAP inside MAP without LET clarity.
  • Expecting MAP to skip blanks unless LAMBDA handles them.
  • Replacing a single-cell formula with MAP unnecessarily.

Frequently asked questions

MAP vs ARRAYFORMULA?
MAP with LAMBDA is more explicit and pairs with modern array functions.
Multiple arrays in MAP?
Yes. Each LAMBDA parameter maps to one input array at the same index.
MAP on whole column A:A?
Avoid full columns on huge sheets. Use bounded ranges.
MAP and blanks?
Handle with IF(ISBLANK(v), , ...) inside LAMBDA.
Can MAP return errors per cell?
Yes. IFERROR inside LAMBDA localizes failures.
MAP vs BYROW?
MAP is element-wise. BYROW sees entire rows together.
MAP performance tips?
Shrink ranges and simplify LAMBDA bodies on big data.

Related Tutorials

Watch how MAP works

Watch more tutorials
Scrape Google Maps

Scrape Google Maps

Scrape any query in Google Maps into your Google Sheets. Enter your API ...
10 Google Sheets I Wish Someone Would Make

10 Google Sheets I Wish Someone Would Make

if you're looking for ideas on what sheets to make I think this video is...

Related blog posts

Guides that explain MAP in more depth.

Browse the blog

Related terms