Hi,
I am having the hardest time trying to get leading zeros to appear in cells...
I'm trying to append of concatenate digits from one cell with digits from another cell:
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]03
[/TD]
[TD]15
[/TD]
[TD]17
[/TD]
[TD]20
[/TD]
[TD]32
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want for example to get "03" in A1 and the "1" in B1 to combine in cell A2.
I have tried following formulas in A2:
=A1&LEFT(B1,1)... which results in 31 appearing in A2.
=LEFT(A1,2)&LEFT(B1,1)... which results in 31 appearing in A2.
strange thing is, if I just put =A1 in A2, then "03" appears in A2. I've changed cell formatting in A2 to custom and "000". How do I combine the "03" in A1 and the first digit in B1 to go into A2?...
Not sure if it's important or not, I'm using Excel 2016.
Doesn't seem right that doing this is so hard? Am I way wrong with the formulas I've tried?
Dave
I am having the hardest time trying to get leading zeros to appear in cells...
I'm trying to append of concatenate digits from one cell with digits from another cell:
[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[TD]E
[/TD]
[TD]F
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]03
[/TD]
[TD]15
[/TD]
[TD]17
[/TD]
[TD]20
[/TD]
[TD]32
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I want for example to get "03" in A1 and the "1" in B1 to combine in cell A2.
I have tried following formulas in A2:
=A1&LEFT(B1,1)... which results in 31 appearing in A2.
=LEFT(A1,2)&LEFT(B1,1)... which results in 31 appearing in A2.
strange thing is, if I just put =A1 in A2, then "03" appears in A2. I've changed cell formatting in A2 to custom and "000". How do I combine the "03" in A1 and the first digit in B1 to go into A2?...
Not sure if it's important or not, I'm using Excel 2016.
Doesn't seem right that doing this is so hard? Am I way wrong with the formulas I've tried?
Dave