GeertD
Board Regular
- Joined
- Dec 22, 2020
- Messages
- 60
- Office Version
- 365
- Platform
- 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.
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 | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | -1 | -2 | -3 | Carina | ||||
2 | 1 | 4 | 6 | |||||
3 | 1 | 6 | 9 | |||||
4 | ||||||||
5 | -1 | -2 | -3 | |||||
6 | 1 | Carina | 6 | |||||
7 | 1 | 6 | 9 | |||||
8 | ||||||||
Sandbox_Mr.Excel |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A5:C7 | A5 | =PutCell(A1:C3,2,2,E1) |
Dynamic array formulas. |
Upvote
0