TEXTPADRIGHT
pads text on the right with character to reach specified length · a deepcalc original · no excel equivalent · no sheets equivalent
signature
TEXTPADRIGHT(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
=TEXTPADRIGHT("hello", 10, "-") hello----- | A | |
|---|---|
| 1 | 10 |
fx
=TEXTPADRIGHT(A1, 15) 10