Hi All,
My data is as below
============
AB-FI-BCD-12345
DG-RK-NNN-987095
RR-ABCDEFGHIJK-9873
TPQ-STUBCKL-12
PPP-ZZZ-1
my requirement is to count the number of characters after last hyphen. If the count is >=4 then add hyphen after 3 characters and display the whole string
THE END DATA SHOULD BE AS BELOW
======================
AB-FI-BCD-123-45
DG-RK-NNN-987-095
RR-ABCDEFGHIJK-987-3
TPQ-STUBCKL-12
PPP-ZZZ-1
Please help me with a formula.
Bookmarks