Note: The other languages of the website are Google-translated. Back to English

Excel MAKEARRAY Function (365)

doc dec2oct 1

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.

Version

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.
doc dec2oct 1

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.
doc dec2oct 1

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.
doc dec2oct 1


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

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

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, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL