I have a column that looks like this '12345' and another column that tells this number's length.
I need to add leading zeros to it until length in another column. Values in length column are either 8 or 6. If number in this column is less than 6 or 8 then add zeros until it becomes that length. I tried this but this isn't working:
=TEXT(H2,"0000000")
Edit: output
"033328" or "00009971"