Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Split a number in a cell into parts


I have a number in Cell A1.
The number is 55658764422543

the number is generated by hand typing it, reading it from a barcode or
RFID tag.

The first 4 digits (5565) is the product serial no
The next 3 (876) is the store the product was sent to
The next 5 (44225) detail the components it took to make the product
The last 2 (43) are the colour of the product.

I want to be able to seperate the setcions of the number, i.e. first 4
digits into B1, then 3 digits into C1, then 5 digits into D1 then
finally 2 digits into E1.

I will use a VLookup then to reference what the components mean.

Can someone help me with the formula's that need to be entered into B1,
C1, D1 & E1 in order to split the number.

Thanks in advance

Okanem


--
okanem
------------------------------------------------------------------------
okanem's Profile: http://www.excelforum.com/member.php...fo&userid=9301
View this thread: http://www.excelforum.com/showthread...hreadid=573778

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Split a number in a cell into parts

First four digits can be returned by: =LEFT(A1,4), the last two can be
referenced via =RIGHT(A1,2) and the middle strings can be extracted by using
MID.

Look in Excel's help for more info on the syntax for MID, which I can't
quite remember.

Dave
--
Brevity is the soul of wit.


"okanem" wrote:


I have a number in Cell A1.
The number is 55658764422543

the number is generated by hand typing it, reading it from a barcode or
RFID tag.

The first 4 digits (5565) is the product serial no
The next 3 (876) is the store the product was sent to
The next 5 (44225) detail the components it took to make the product
The last 2 (43) are the colour of the product.

I want to be able to seperate the setcions of the number, i.e. first 4
digits into B1, then 3 digits into C1, then 5 digits into D1 then
finally 2 digits into E1.

I will use a VLookup then to reference what the components mean.

Can someone help me with the formula's that need to be entered into B1,
C1, D1 & E1 in order to split the number.

Thanks in advance

Okanem


--
okanem
------------------------------------------------------------------------
okanem's Profile: http://www.excelforum.com/member.php...fo&userid=9301
View this thread: http://www.excelforum.com/showthread...hreadid=573778


  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Split a number in a cell into parts

In B1 put...=LEFT(A1,4)
In C1 put...=MID(A1,5,3)
In D1 put...=MID(A1,8,5)
In E1 put...=RIGHT(A1,2)

Vaya con Dios,
Chuck, CABGx3



"okanem" wrote:


I have a number in Cell A1.
The number is 55658764422543

the number is generated by hand typing it, reading it from a barcode or
RFID tag.

The first 4 digits (5565) is the product serial no
The next 3 (876) is the store the product was sent to
The next 5 (44225) detail the components it took to make the product
The last 2 (43) are the colour of the product.

I want to be able to seperate the setcions of the number, i.e. first 4
digits into B1, then 3 digits into C1, then 5 digits into D1 then
finally 2 digits into E1.

I will use a VLookup then to reference what the components mean.

Can someone help me with the formula's that need to be entered into B1,
C1, D1 & E1 in order to split the number.

Thanks in advance

Okanem


--
okanem
------------------------------------------------------------------------
okanem's Profile: http://www.excelforum.com/member.php...fo&userid=9301
View this thread: http://www.excelforum.com/showthread...hreadid=573778


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Split a number in a cell into parts

=LEFT(A1,4)

=MID(A1,5,3)

=MID(A1,8,5)

=RIGHT(A1,2)

"okanem" wrote:


I have a number in Cell A1.
The number is 55658764422543

the number is generated by hand typing it, reading it from a barcode or
RFID tag.

The first 4 digits (5565) is the product serial no
The next 3 (876) is the store the product was sent to
The next 5 (44225) detail the components it took to make the product
The last 2 (43) are the colour of the product.

I want to be able to seperate the setcions of the number, i.e. first 4
digits into B1, then 3 digits into C1, then 5 digits into D1 then
finally 2 digits into E1.

I will use a VLookup then to reference what the components mean.

Can someone help me with the formula's that need to be entered into B1,
C1, D1 & E1 in order to split the number.

Thanks in advance

Okanem


--
okanem
------------------------------------------------------------------------
okanem's Profile: http://www.excelforum.com/member.php...fo&userid=9301
View this thread: http://www.excelforum.com/showthread...hreadid=573778


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Split a number in a cell into parts

Dear Okanem,

Number is in Cell A1 55658764422543

Fourmula should be in

B1 =LEFT(A1,4)
C1 =MID(A1,5,3)
D1 =MID(A1,8,5)
E1 =RIGHT(A1,2)


Aarif

"okanem" wrote:


I have a number in Cell A1.
The number is 55658764422543

the number is generated by hand typing it, reading it from a barcode or
RFID tag.

The first 4 digits (5565) is the product serial no
The next 3 (876) is the store the product was sent to
The next 5 (44225) detail the components it took to make the product
The last 2 (43) are the colour of the product.

I want to be able to seperate the setcions of the number, i.e. first 4
digits into B1, then 3 digits into C1, then 5 digits into D1 then
finally 2 digits into E1.

I will use a VLookup then to reference what the components mean.

Can someone help me with the formula's that need to be entered into B1,
C1, D1 & E1 in order to split the number.

Thanks in advance

Okanem


--
okanem
------------------------------------------------------------------------
okanem's Profile: http://www.excelforum.com/member.php...fo&userid=9301
View this thread: http://www.excelforum.com/showthread...hreadid=573778


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
Conditional Format as a MACRO Gunjani Excel Worksheet Functions 3 March 29th 06 05:22 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
How can I split one cell into two cell parts (upper & lower)? Desert Sparkle Excel Discussion (Misc queries) 0 January 5th 06 09:22 PM
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM


All times are GMT +1. The time now is 08:47 AM.

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

About Us

"It's about Microsoft Excel"