Alphanumeric

  • Thread starter hardeep via OfficeKB.com
  • Start date
T

T. Valko

Possible improvement...

In your sample data all the number strings are the same length. So, if
that's the case then we can use much simpler formulas.

In B2:

=LEFT(A2,LEN(A2)-5)

In C2:

=RIGHT(A2,5) (returns a TEXT number)
=--RIGHT(A2,5) (returns a NUMERIC number)

The same condition applies to leading 0s.
 
B

beejay

thank you for the information
it works



T. Valko said:
Possible improvement...

In your sample data all the number strings are the same length. So, if
that's the case then we can use much simpler formulas.

In B2:

=LEFT(A2,LEN(A2)-5)

In C2:

=RIGHT(A2,5) (returns a TEXT number)
=--RIGHT(A2,5) (returns a NUMERIC number)

The same condition applies to leading 0s.
 

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