Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Mad Dog
 
Posts: n/a
Default Splitting Information in a Cell

How would I take this value in a single cell:

12345AB

and create this value in two cells, as follows:

12345 AB

Thanking you in advance!

Mad Dog
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Splitting Information in a Cell

Is it always 5 characters followed by 2?

Data|Text to columns
or
you can use formulas
=left(a1,5)
=right(a1,2)



Mad Dog wrote:

How would I take this value in a single cell:

12345AB

and create this value in two cells, as follows:

12345 AB

Thanking you in advance!

Mad Dog


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Mad Dog
 
Posts: n/a
Default Splitting Information in a Cell

Not always - but it is always numbers/txt. Sometimes the text part is not
there.

"Dave Peterson" wrote:

Is it always 5 characters followed by 2?

Data|Text to columns
or
you can use formulas
=left(a1,5)
=right(a1,2)



Mad Dog wrote:

How would I take this value in a single cell:

12345AB

and create this value in two cells, as follows:

12345 AB

Thanking you in advance!

Mad Dog


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Splitting Information in a Cell

Put this in B1:

=--LEFT(A1,MIN(MATCH(TRUE,
ISERROR(-MID(A1&"x",ROW(INDIRECT("1:"&LEN(A1)+1)),1)),0))-1)

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

If you want the stuff in column B to be text, then drop the -- at the beginning
of the formula (the -- converts the text to numbers.

and this in C1:
=MID(A1,LEN(B1)+1,255)



Mad Dog wrote:

Not always - but it is always numbers/txt. Sometimes the text part is not
there.

"Dave Peterson" wrote:

Is it always 5 characters followed by 2?

Data|Text to columns
or
you can use formulas
=left(a1,5)
=right(a1,2)



Mad Dog wrote:

How would I take this value in a single cell:

12345AB

and create this value in two cells, as follows:

12345 AB

Thanking you in advance!

Mad Dog


--

Dave Peterson


--

Dave Peterson
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
Cell color based upon cell value My View Excel Discussion (Misc queries) 11 July 6th 05 03:59 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Input cell information RB Camp Excel Discussion (Misc queries) 3 May 18th 05 05:49 PM
Transfering information to the next free cell in a column Chaudfeu Excel Discussion (Misc queries) 1 February 19th 05 07:18 PM


All times are GMT +1. The time now is 08:08 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"