Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Can anyone help - I am sure there is a easy way to do this

Can anyone help with a formula to separate a field containing numbers and
letters into numbers per below? I only know how to use for eg =left(X,x) but
that isn't helpful as different fields have different number of numeric
charcters.


123ABC - 123
1234DEF - 1234
12GH - 12
--
ACCAguy
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Can anyone help - I am sure there is a easy way to do this


ALWAYS best to try to describe your problem in the subject line......
Try datatext to columnsdelimited

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"ACCAguy" wrote in message
...
Can anyone help with a formula to separate a field containing numbers and
letters into numbers per below? I only know how to use for eg =left(X,x)
but
that isn't helpful as different fields have different number of numeric
charcters.


123ABC - 123
1234DEF - 1234
12GH - 12
--
ACCAguy


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Can anyone help - I am sure there is a easy way to do this

Don,
doesn't the OP need to divide 123ABC into sth. like 123 (in one cell)
and ABC (in another)?
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Can anyone help - I am sure there is a easy way to do this

you may try to use this macro
first select your cells (123ABC etc.) - the results will be stored
one column to the right

Sub wydziel()
Dim cell As Range
Dim tekst As String
Dim i As Integer

For Each cell In Selection
tekst = vbNullString
For i = 1 To Len(cell)
If IsNumeric(Mid(cell, i, 1)) Then
tekst = tekst & Mid(cell, i, 1)
Else:
Exit For
End If
Next i
cell.Offset(0, 1) = tekst
Next cell
End Sub
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Can anyone help - I am sure there is a easy way to do this

On 29 Sie, 21:51, Jarek Kujawa wrote:
Don,
doesn't the OP need to divide 123ABC into sth. like 123 (in one cell)
and ABC (in another)?




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Can anyone help - I am sure there is a easy way to do this

=LOOKUP(10^10,--MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"012345 6789")),ROW(INDIRECT("1:"&LEN(A1)))))

--
__________________________________
HTH

Bob

"ACCAguy" wrote in message
...
Can anyone help with a formula to separate a field containing numbers and
letters into numbers per below? I only know how to use for eg =left(X,x)
but
that isn't helpful as different fields have different number of numeric
charcters.


123ABC - 123
1234DEF - 1234
12GH - 12
--
ACCAguy



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Can anyone help - I am sure there is a easy way to do this

Yes, I need to read more CAREFULLY.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Jarek Kujawa" wrote in message
...
Don,
doesn't the OP need to divide 123ABC into sth. like 123 (in one cell)
and ABC (in another)?


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
Should be easy but....... Steve Excel Discussion (Misc queries) 5 February 5th 09 03:32 PM
Who said this would be easy! (oh yes I did!) nobbyknownowt Excel Discussion (Misc queries) 1 August 4th 06 03:20 PM
This should be easy Kypreo Excel Worksheet Functions 5 November 22nd 05 05:28 AM
I'm sure this is an easy one, but.... Omakbob Excel Worksheet Functions 6 October 31st 05 02:41 PM
new user with easy question? not easy for me speakeztruth New Users to Excel 5 June 3rd 05 09:40 PM


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