numbers within numbers

E

EngelseBoer

is it possible to rundown a column of numbers in A
and return it in B without the 1st 4 and last 4 didtgets?

ie whether the number is 12, 13, 14, 15, ditgets long
i want the center bit - in my case - to get the breeders number
extracting the YEAR (1st 4 ditgets) and (dog number (last 4 Digets)

A B
200812340001 = 1234
2007567890001 = 56789
 
L

Lars-Åke Aspelin

is it possible to rundown a column of numbers in A
and return it in B without the 1st 4 and last 4 didtgets?

ie whether the number is 12, 13, 14, 15, ditgets long
i want the center bit - in my case - to get the breeders number
extracting the YEAR (1st 4 ditgets) and (dog number (last 4 Digets)

A B
200812340001 = 1234
2007567890001 = 56789


Try the following formula:

=MID(A1,5,LEN(A1)-8)

Copy down as far as needed

Hope this helps / Lars-Åke
 
S

Sheeloo

Enter the following in B1 and copy down;

=MID(A1,5,LEN(A1)-8)

This will remove first and last four digits. It is assumed that all numbers
will have at least 9 digits.
 
L

Lars-Åke Aspelin

This formula will not work in general.
Take this example
2008200890001

It should return 20089 but your formula gives just 9.

Lars-Åke
 
E

EngelseBoer

hope that wont be a problem in my application

Lars-Ã…ke Aspelin said:
This formula will not work in general.
Take this example
2008200890001

It should return 20089 but your formula gives just 9.

Lars-Ã…ke
 

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