Skip to main content
← All functions

MAP function

Returns an array formed by mapping each value in the array(s) to a new value by applying a LAMBDA to create a new value.

Syntax

MAP(array1, [array2], lambda)

Square brackets indicate optional arguments.

Arguments

ArgumentRequiredMeaning
array1YesAn array1 to be mapped.D2:D11
array2No · repeatsAn array2 to be mapped.E2:E11
lambdaYesA LAMBDA which must be the last argument and which must have either a parameter for each array passed.LAMBDA(s,c,AND(s="Large",c="Red"))

Try MAP

Multiply corresponding price and quantity entries

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

MAP passes corresponding entries from both arrays to the two parameters. The resulting amounts are 24,0,24. The zero-quantity row remains a real zero in the result.

Inspect the current formula

Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.

Read the formula, one argument at a time

Explore the written function calls and their inputs. The calculation result belongs to the complete formula.

MAP · top-level call

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

1 / 3 · array1

An array1 to be mapped.

MAP reference ↗

Follow the cells behind a result

Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.

The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.

Practice a complete task

Reference and compatibility

Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.