## Excel MAKEARRAY Function (365)

### Description

The Excel MAKEARRAY function returns a calculated array based on the given number of rows and columns.

Formula syntax

MAKEARRAY(rows,columns,lambda(r,c,calculation))

Arguments

 rows: Required, the number of rows to create in the array. Rows must be greater than 1 and integer.columns: Required, the number of columns to create in the array. Columns must be greater than 1 and integer.lambda: Required, the calculation to use in the created array. r: the row index of the array;c: the column index of the array;calculation: the calculation will use in the array.

### Returns

The MAKEARRAY function returns an array.

### Errors

1. When an invalid LAMBDA function or an incorrect number of parameters is provided, it returns #VALUE error called “Incorrect Parameters”.

2. When any one of the arguments rows and columns is smaller than 1 or not integer or a nonnumeric value, it returns #VALUE! error.

Excel 365

### Usage and Examples

Example 1 to create an array with 2 rows and 3 columns and fill the result with multiplying rows and columns

Select a cell then use the formula:

=MAKEARRAY(2,3,LAMBDA(r,c,r*c))

Press Enter key, and a 2-D table is created.

Example 2 to create an array with 2 rows and 3 columns and fill the result with the text "KTE"/strong>

Select a cell then use the formula:

=MAKEARRAY(2,3,LAMBDA(r,c,"KTE"))

Press Enter key, and a 2-D table is created.

Example 3 to create an array with 3 rows and 1 column and fill random numbers between 1-10

Select a cell then use the formula:

=MAKEARRAY(3,1,LAMBDA(r,c,RANDBETWEEN(1,10)))

Press Enter key, and a single-column table is created.

#### Other Functions:

• Excel BYCOL Function
The Excel BYCOL function applies a LAMBDA function to each column in a given array and returns the result per column as a single array.

• Excel BYROWsan> Function
The Excel BYROW function applies a LAMBDA function to each row in a given array and returns the result per row as a single array.

• Excel LAMBDA Function
The Excel LAMBDA function is used to create custom functions that can be reused throughout a workbook.

• Excel F.DIST Function
The Excel F.DIST function returns the F probability distribution which is usually used to measure the degree of diversity between two data sets.

### The Best Office Productivity Tools

#### Kutools for Excel - Helps You To Stand Out From Crowd

 🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions… Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ... Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup... Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List... Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Columns to Select Same & Different Cells ... Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ... Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

#### Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

• One second to switch between dozens of open documents!
• Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
• Increases your productivity by 50% when viewing and editing multiple documents.
• Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.