TEXTPADLEFT
pads text on the left with character to reach specified length · a deepcalc original · no excel equivalent · no sheets equivalent
signature
TEXTPADLEFT(text, length, [pad_char])
returns: text
| argument | required |
|---|---|
| text | required |
| length | required |
| pad_char | optional |
examples
formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.
fx
=TEXTPADLEFT("42", 5, "0") 00042 | A | |
|---|---|
| 1 | 10 |
fx
=TEXTPADLEFT(A1, 10) 10