For example, =RIGHT(“apple”,3) returns “ple”.

TEXT Function

The Excel TEXT function returns a number formatted as text.

in a text string with the number format of your choice.

Excel formula: Pad a number with zeros

Excel RIGHT function

Excel TEXT function