Apr 24 2022 10:34 AM
Number | Material | Batch |
01 | 04.333.420 | 202817 |
02 | 04.334.565 | 204258 |
03 | 03.127.016 | H800695-01 |
Is there a way to take these columns and format them to 01_04.333.420_202817?
Apr 24 2022 10:37 AM
Let's say the data are in column A to C, starting in row 2.
Enter the following formula in D2:
=TEXT(A2,"00")&"_"&B2&"_"&C2
Fill down to the last row with data.
Apr 24 2022 10:42 AM
Apr 24 2022 11:09 AM
SolutionThat suggests that the cells in column B might contain a trailing space. To remove it:
=TEXT(A2,"00")&"_"&TRIM(B2)&"_"&C2
Apr 24 2022 11:09 AM
SolutionThat suggests that the cells in column B might contain a trailing space. To remove it:
=TEXT(A2,"00")&"_"&TRIM(B2)&"_"&C2