How do I keep the leading 0 from A1 using formula =left(A1,4)? -


how keep leading 0 a1 using formula =left(a1,4)?

ex. have 01234567 in cell a1. want 1st 4 digits of number placed in cell d1 (including leading 0).

so should 0123, not 1234.

i've used =left(a1,3) , works, however; i'm working lot of data , changing 1 cell here , there pain.

if know sure number of digits (including leading zeroes) fixed, should work (for fixed field width of 8):

=left(text(a1,"00000000"),4)

the number of zeroes in second arg text field width.


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -