MAKEARRAY

Creates an array of the specified dimensions, with each cell's value is generated by applying a formula.

ໄອຄອນ ບັນທຶກ

ປ້ອນສູດເປັນ ສູດອາເຣ (array formula). ຄຳແນະນຳ: ປ້ອນສູດໂດຍໃຊ້ປຸ່ມ Ctrl + Shift + Enter.


ໄວຍາກອນ

=MAKEARRAY(nRows; nCols; Formula)

nRows: the number of rows of the resulting array.

nCols: the number of columns of the resulting array.

Formula: a formula expression or LAMBDA function that will be called on each cell of the array.

ໄອຄອນ ບັນທຶກ

The formula must define 2 variables, related to the rows and columns of the array.


ຕົວຢ່າງ

The formula =MAKEARRAY(5;5;LAMBDA(r;c;IF(r=c;1;0))) creates a 5x5 identity matrix (it is the same result of the function =MUNIT(5)).

The formula =MAKEARRAY(5;8;(LAMBDA(r;c;"@@@"))) creates a 5x8 array filled with the string "@@@".

The formula =MAKEARRAY(1;7;LAMBDA(r;c;c)) creates a one row array filled with numbers 1 to 7.

ຂໍ້ມູນທາງເຕັກນິກ

ໄອຄອນ ເຄັດລັບ

This function is available since LibreOfficeDev 27.2.


ຟັງຊັນນີ້ ບໍ່ແມ່ນ ສ່ວນໜຶ່ງຂອງມາດຕະຖານ Open Document Format for Office Applications (OpenDocument) ເວີຊັນ 1.3 ພາກທີ 4: ຮູບແບບສູດທີ່ຄິດໄລ່ຄືນໃໝ່ (OpenFormula). ຊື່ພື້ນທີ່ (name space) ແມ່ນ

COM.MICROSOFT.MAKEARRAY

ກະລຸນາສະໜັບສະໜູນພວກເຮົາ!

ກະລຸນາສະໜັບສະໜູນພວກເຮົາ!