Fix Excel MAP Function Returning #VALUE! Error with Scalar Arguments
Question details
The user is experiencing a #VALUE! error when using the MAP function with scalar arguments instead of arrays in certain Excel builds.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Using the MAP and LAMBDA functions to perform calculations with multiple vectors or scalar inputs.
- Observed behavior
- The MAP function returns a #VALUE! error because it fails to automatically lift scalar arguments to arrays.
Ensure you understand the structure of the MAP and LAMBDA functions in your spreadsheet. Check your current Excel build and update channel, as behavior with array functions can vary across versions.
Convert Scalar Arguments to Explicit Single-Cell Arrays
Manually force scalar arguments into arrays using curly braces or array functions to ensure the MAP function processes them correctly.
While Excel often automatically lifts scalars into arrays, certain builds fail to do this when using the MAP function. Wrapping scalars in array brackets ensures compatibility.
Modify your formula to enclose scalar values in curly braces. For example, change =MAP(0, 1, LAMBDA(x,y,x+y)) to =MAP({0}, {1}, LAMBDA(x,y,x+y)).
Alternatively, use the HSTACK function to convert the scalar into an array. For example, write =MAP(HSTACK(0), HSTACK(1), LAMBDA(x,y,x+y)).
If your scalars are in cells, reference the cells directly (e.g., =MAP(A1, A2, LAMBDA(x,y,x+y))), as Excel implicitly lifts cell ranges to arrays.

Check and Update Your Excel Build Channel
Switching your update channel or updating your Excel build can resolve inconsistencies with dynamic array functions.
Try WPS Office for Seamless Spreadsheet Calculations
If you are frustrated by inconsistent formula behaviors across different Excel builds, consider switching to WPS Office. It offers a lightweight, highly compatible spreadsheet tool that handles complex formulas and data analysis with ease, all within a familiar interface.
- 1. Download WPS Office: Visit the official WPS website and download the free WPS Office installer.
- 2. Install the Software: Run the installer and follow the on-screen instructions to complete the setup.
- 3. Open Your Spreadsheets: Launch WPS Spreadsheet and open your existing Excel files to continue working seamlessly.

Frequently Asked Questions
Why does the MAP function require arrays?
The MAP function is designed to iterate over each value in one or more arrays and pass them to a LAMBDA function. If it receives a raw scalar value instead of an array, it cannot iterate, which triggers a #VALUE! error in some software builds.
What is a scalar argument in Excel?
A scalar argument is a single, individual value (like the number 5 or the text 'Total') rather than a range of cells or an array of multiple values.
Does this error affect all versions of Excel?
No, the automatic lifting of scalars to arrays works in many modern builds. However, behavior can be inconsistent depending on whether you are using a perpetual-license version (like Office 2021) or a specific Microsoft 365 subscription update channel.




