View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave F Dave F is offline
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