I'm trying to format the result of the formula so that it includes a leading zero within the StepID. For example "101-01-01". here's the formula and a screenshot of the spreadsheet below...
=TEXT(IF(ISBLANK(A2),LEFT(I1,(SEARCH("^^",SUBSTITUTE(I1,"-","^^",LEN(I1)-LEN(SUBSTITUTE(I1,"-",""))))))&""&D2,LEFT(A2,(SEARCH("^^",SUBSTITUTE(A2,"-","^^",LEN(A2)-LEN(SUBSTITUTE(A2,"-",""))))))&""&D2),"000-00-00")
=TEXT(IF(ISBLANK(A2),LEFT(I1,(SEARCH("^^",SUBSTITUTE(I1,"-","^^",LEN(I1)-LEN(SUBSTITUTE(I1,"-",""))))))&""&D2,LEFT(A2,(SEARCH("^^",SUBSTITUTE(A2,"-","^^",LEN(A2)-LEN(SUBSTITUTE(A2,"-",""))))))&""&D2),"000-00-00")