Explanation
TheLAMBDA functioncan be used to create reusable, custom functions in Excel without VBA or macros.
Here is the formula in action below.
You canread a detailed explanation here.
SUBSTITUTE Function
The Excel SUBSTITUTE function replaces text in a given string by matching.
LEN will also count characters in numbers, but number formatting is not included.