Forum Discussion
KAM_Mumin
Oct 31, 2022Brass Contributor
MS Excel Custom Cell Formatting with Formula.
Hi Everyone! I make an excel sheet for creating Product ID and there I use formula to create the product ID. But the main thing is need to do that is the cell value format by the custom cell formatt...
- Oct 31, 2022
Presuming data in A1, you could use:
=LET(str,TEXTSPLIT(A1,"-"),prefix,TAKE(str,,1),n,TEXT(CHOOSECOLS(str,2),"0000"),nn,TEXT(TAKE(str,,-1),"000000"),TEXTJOIN("-",,prefix,n,nn))
Flash Fill has mixed results with these IDs.
Patrick2788
Oct 31, 2022Silver Contributor
Presuming data in A1, you could use:
=LET(str,TEXTSPLIT(A1,"-"),prefix,TAKE(str,,1),n,TEXT(CHOOSECOLS(str,2),"0000"),nn,TEXT(TAKE(str,,-1),"000000"),TEXTJOIN("-",,prefix,n,nn))
Flash Fill has mixed results with these IDs.