Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jen Jen is offline
external usenet poster
 
Posts: 119
Default How to 'split' data from 1 column into 2??

Hi!

Can anyone help me with a formula for Excel 2003 to split data from 1 column
into 2?

Data Examples:
COUN1234
PS3524
PSY5002

I want to have a formula to split the alpha data from the numeric data. As
you can see, the alpha data is of varying lengths.

Thanks ahead of time for anyone who can assist with this!

-Jen;-)

Jennifer Moulton

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default How to 'split' data from 1 column into 2??

Jen wrote:
Hi!

Can anyone help me with a formula for Excel 2003 to split data from 1 column
into 2?

Data Examples:
COUN1234
PS3524
PSY5002

I want to have a formula to split the alpha data from the numeric data. As
you can see, the alpha data is of varying lengths.

Thanks ahead of time for anyone who can assist with this!

-Jen;-)

Jennifer Moulton



The following two array formulas (commit with CTRL+SHIFT+ENTER) will work:

=LEFT(A1,MATCH(1,--ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&(LEN(A1)))),1)),0)-1)

=--MID(A1,MATCH(1,--ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&(LEN(A1)))),1)),0),LEN(A1 ))
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default How to 'split' data from 1 column into 2??

You will nee to use a couple of CSE functions.

This will give you the text in each cell:
=IF(A1="","",LEFT(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9 },A1&"0123456789"))-1))

Enter with Ctrl+Shift+Enter, not just enter.

This will give you the numbers in each cell:
=IF(A1="","",RIGHT(A1,LEN(A1)-MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789"))+1 ))

Again, enter with Ctrl+Shift+Enter, not just enter,

HTH,
Ryan---
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Jen" wrote:

Hi!

Can anyone help me with a formula for Excel 2003 to split data from 1 column
into 2?

Data Examples:
COUN1234
PS3524
PSY5002

I want to have a formula to split the alpha data from the numeric data. As
you can see, the alpha data is of varying lengths.

Thanks ahead of time for anyone who can assist with this!

-Jen;-)

Jennifer Moulton

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default How to 'split' data from 1 column into 2??

If you always have 4 trailing numbers.

In C1 enter =RIGHT(A1,4) copy down

In B1 enter =MID(A1,1,LEN(A1)-LEN(C1)) copy down


Gord Dibben MS Excel MVP


On Thu, 15 Oct 2009 09:17:17 -0700, Jen
wrote:

Hi!

Can anyone help me with a formula for Excel 2003 to split data from 1 column
into 2?

Data Examples:
COUN1234
PS3524
PSY5002

I want to have a formula to split the alpha data from the numeric data. As
you can see, the alpha data is of varying lengths.

Thanks ahead of time for anyone who can assist with this!

-Jen;-)

Jennifer Moulton


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default How to 'split' data from 1 column into 2??

If your first statement is true, then in B1:

=LEFT(A1,LEN(A1)-4)

Gord Dibben wrote:
If you always have 4 trailing numbers.

In C1 enter =RIGHT(A1,4) copy down

In B1 enter =MID(A1,1,LEN(A1)-LEN(C1)) copy down


Gord Dibben MS Excel MVP


On Thu, 15 Oct 2009 09:17:17 -0700, Jen
wrote:

Hi!

Can anyone help me with a formula for Excel 2003 to split data from 1 column
into 2?

Data Examples:
COUN1234
PS3524
PSY5002

I want to have a formula to split the alpha data from the numeric data. As
you can see, the alpha data is of varying lengths.

Thanks ahead of time for anyone who can assist with this!

-Jen;-)

Jennifer Moulton




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default How to 'split' data from 1 column into 2??

Good catch.

I tend to make things more convoluted than necessary.


Gord

On Thu, 15 Oct 2009 14:54:46 -0500, Glenn wrote:

If your first statement is true, then in B1:

=LEFT(A1,LEN(A1)-4)

Gord Dibben wrote:
If you always have 4 trailing numbers.

In C1 enter =RIGHT(A1,4) copy down

In B1 enter =MID(A1,1,LEN(A1)-LEN(C1)) copy down


Gord Dibben MS Excel MVP


On Thu, 15 Oct 2009 09:17:17 -0700, Jen
wrote:

Hi!

Can anyone help me with a formula for Excel 2003 to split data from 1 column
into 2?

Data Examples:
COUN1234
PS3524
PSY5002

I want to have a formula to split the alpha data from the numeric data. As
you can see, the alpha data is of varying lengths.

Thanks ahead of time for anyone who can assist with this!

-Jen;-)

Jennifer Moulton



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default How to 'split' data from 1 column into 2??

On Thu, 15 Oct 2009 09:17:17 -0700, Jen wrote:

Hi!

Can anyone help me with a formula for Excel 2003 to split data from 1 column
into 2?

Data Examples:
COUN1234
PS3524
PSY5002

I want to have a formula to split the alpha data from the numeric data. As
you can see, the alpha data is of varying lengths.

Thanks ahead of time for anyone who can assist with this!

-Jen;-)

Jennifer Moulton



The location of the first digit in your string is given by the formula:

=MIN(FIND({0,1,2,3,4,5,6,7,8,9,0},A1&"0,1,2,3,4,5, 6,7,8,9"))

Accordingly, to return the alpha data:

=LEFT(A1,-1+MIN(FIND({0,1,2,3,4,5,6,7,8,9,0},A1&"0,1,2,3,4,5 ,6,7,8,9")))

and to return the digits:

=MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9,0},A1&"0,1,2 ,3,4,5,6,7,8,9")),99)

Note the 99 at the end. This just needs to be a value larger than the longest
set of digits in your data.
--ron
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
Shortcut to split data from one column into three? HELP! LenoraMarie Excel Worksheet Functions 3 June 25th 08 04:17 PM
Split Data in One Column Into Two RoadKill Excel Discussion (Misc queries) 2 March 10th 08 10:14 PM
Split data in column Kat Excel Worksheet Functions 1 November 3rd 05 02:19 AM
How do I split data in a column (formula)? dan Excel Discussion (Misc queries) 7 July 6th 05 12:12 AM
How to split one column into two? Robert Judge Excel Worksheet Functions 6 December 24th 04 06:36 PM


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