Column A was formatted using Custom to include leading zeros. Colum B was concat to include format for use in SQL. There are over 11,000 lines in Column A.
Need to figure out how to keep leading zeros in column B and still have format for sql
Column A was formatted using Custom to include leading zeros. Colum B was concat to include format for use in SQL. There are over 11,000 lines in Column A.
Need to figure out how to keep leading zeros in column B and still have format for sql

You could try one of the followings:
• Formula used in cell B1
Or could use
TEXT()+REPT()function combo:Note that the use of
MAX()&LEN()only because if the values inColumn Ahas varying length of characters.If the length of characters are not varying and remains same for the whole range could simplify it as :
Or as mentioned in comments by Scott Craner Sir if you want to combine all into one then using
ARRAYTOTEXT()+TOCOL()If one don't have access to
ARRAYTOTEXT()then: