PUTCELL

=PUTCELL(Array,RowNr,ColNr,val)

Array
Required.
RowNr
Optional. Row co-ordinate of the cell that gets the value. If omitted or outside of the Array, the Array remains unchanged.
ColNr
Optional. Column co-ordinate of the cell that gets the value. If omitted or outside of the Array, the Array remains unchanged.
val
Optional. (reference to) scalar value. If omitted, the cell will be put to zero.

Put a single value at a precise position in an array. If you try to put the value outside of the array or omit one or both the co-ordinates, the Array remains unchanged.

GeertD

Board Regular
Joined
Dec 22, 2020
Messages
60
Office Version
  1. 365
Platform
  1. Windows
PUTCELL: Put a single value at a precise position in an array.
If you try to put the value outside of the array, the latter remains unchanged.
Excel Formula:
=LAMBDA(Array,RowNr,ColNr,val,LET(
   RowsA,ROWS(Array),ColsA,COLUMNS(Array),
   Rowdex,SEQUENCE(RowsA),Coldex,SEQUENCE(,ColsA),
   IF(or(RowsA<RowNr,ColsA<ColNr),Array,IF((Rowdex=RowNr)*(Coldex=ColNr),val,Array))
))
DXLR's LAMBDA.LET Library_v00.07.xlsb
ABCDEF
1-1-2-3Carina
2146
3169
4
5-1-2-3
61Carina6
7169
8
Sandbox_Mr.Excel
Cell Formulas
RangeFormula
A5:C7A5=PutCell(A1:C3,2,2,E1)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,216,085
Messages
6,128,733
Members
449,465
Latest member
TAKLAM

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top