Need a formula to count the number of digits in a number.

G

Guest

I like to know how we can count the number of digits in a whole number...e.g. 243593 should return with 6...and so on

Also how can we now seperate this digits so they can be arranged like one per cell in the same sequence

In the above case how can I seperate the number so that A2=2, B2=4, C2=3, D2=5, E2=9 and F2=3

Help highly appriciated

Thanks.
 
B

Biff

Hi Jethwa,

You can use the LEN function:

=LEN(A1)

To separate the individual digits, use Data>Text to
columns. Select the fixed width option and set the break
lines for each digit.

Biff
-----Original Message-----
I like to know how we can count the number of digits in a
whole number...e.g. 243593 should return with 6...and so
on.
Also how can we now seperate this digits so they can be
arranged like one per cell in the same sequence.
In the above case how can I seperate the number so that
A2=2, B2=4, C2=3, D2=5, E2=9 and F2=3.
 
G

Guest

Great.......... thanks a lot. I couln't believe how simple it was.

Now one more thing.....I created a macro to do the complete sequence and the numbers come up in individual columns.
Can we create a formula that would initiate a Macro. e.g. If B1=1 then run the Macro . If B2=0 Do not run the Macro.

Thanks

----- Biff wrote: -----

Hi Jethwa,

You can use the LEN function:

=LEN(A1)

To separate the individual digits, use Data>Text to
columns. Select the fixed width option and set the break
lines for each digit.

Biff
-----Original Message-----
I like to know how we can count the number of digits in a
whole number...e.g. 243593 should return with 6...and so
on.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top