Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default numbers within numbers

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

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 695
Default numbers within numbers

=SUBSTITUTE(SUBSTITUTE(A2,LEFT(A2,4),""),RIGHT(A2, 4),"")


"EngelseBoer" skrev:

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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default numbers within numbers

On Sun, 7 Sep 2008 02:54:27 -0700, EngelseBoer
wrote:

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
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default numbers within numbers

=LEFT(MID(A1,5,256),LEN(A1)-8)
--
Gary''s Student - gsnu200802
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 793
Default numbers within numbers

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.

"EngelseBoer" wrote:

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



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default numbers within numbers

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

It should return 20089 but your formula gives just 9.

Lars-Åke

On Sun, 7 Sep 2008 03:08:17 -0700, excelent
wrote:

=SUBSTITUTE(SUBSTITUTE(A2,LEFT(A2,4),""),RIGHT(A2 ,4),"")


"EngelseBoer" skrev:

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


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default numbers within numbers

excelent...
thanks guys


"excelent" wrote:

=SUBSTITUTE(SUBSTITUTE(A2,LEFT(A2,4),""),RIGHT(A2, 4),"")


"EngelseBoer" skrev:

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

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default numbers within numbers

hope that wont be a problem in my application

"Lars-Ã…ke Aspelin" wrote:

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

It should return 20089 but your formula gives just 9.

Lars-Ã…ke

On Sun, 7 Sep 2008 03:08:17 -0700, excelent
wrote:

=SUBSTITUTE(SUBSTITUTE(A2,LEFT(A2,4),""),RIGHT(A2 ,4),"")


"EngelseBoer" skrev:

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



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default numbers within numbers

ummm YES IT IS A PROBLEM
this is a real number
19840040004
returns "0"

"Lars-Ã…ke Aspelin" wrote:

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

It should return 20089 but your formula gives just 9.

Lars-Ã…ke

On Sun, 7 Sep 2008 03:08:17 -0700, excelent
wrote:

=SUBSTITUTE(SUBSTITUTE(A2,LEFT(A2,4),""),RIGHT(A2 ,4),"")


"EngelseBoer" skrev:

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



  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 67
Default numbers within numbers

yes - this works better
thanks all who supplied it

"Lars-Ã…ke Aspelin" wrote:

On Sun, 7 Sep 2008 02:54:27 -0700, EngelseBoer
wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel, change column of negative numbers to positive numbers? Nita New Users to Excel 3 November 27th 07 04:54 AM
Excel Formula - Add column of numbers but ignore negative numbers view for Distribution List members Excel Worksheet Functions 1 April 7th 06 03:13 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 3 January 19th 06 09:52 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 1 January 9th 06 01:23 PM
Count comma separated numbers, numbers in a range with dash, not t Mahendra Excel Discussion (Misc queries) 0 August 8th 05 05:56 PM


All times are GMT +1. The time now is 02:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"