PC Review


Reply
Thread Tools Rate Thread

Can anyone help - I am sure there is a easy way to do this

 
 
ACCAguy
Guest
Posts: n/a
 
      29th Aug 2008
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
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      29th Aug 2008

ALWAYS best to try to describe your problem in the subject line......
Try data>text to columns>delimited>>>>

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"ACCAguy" <(E-Mail Removed)> wrote in message
news:158DA626-C9C3-4833-A307-(E-Mail Removed)...
> 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


 
Reply With Quote
 
Jarek Kujawa
Guest
Posts: n/a
 
      29th Aug 2008
Don,
doesn't the OP need to divide 123ABC into sth. like 123 (in one cell)
and ABC (in another)?
 
Reply With Quote
 
Jarek Kujawa
Guest
Posts: n/a
 
      29th Aug 2008
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
 
Reply With Quote
 
Jarek Kujawa
Guest
Posts: n/a
 
      29th Aug 2008
On 29 Sie, 21:51, Jarek Kujawa <bli...@gazeta.pl> wrote:
> Don,
> doesn't the OP need to divide 123ABC into sth. like 123 (in one cell)
> and ABC (in another)?


 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      29th Aug 2008
=LOOKUP(10^10,--MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),ROW(INDIRECT("1:"&LEN(A1)))))

--
__________________________________
HTH

Bob

"ACCAguy" <(E-Mail Removed)> wrote in message
news:158DA626-C9C3-4833-A307-(E-Mail Removed)...
> 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



 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      29th Aug 2008
Yes, I need to read more CAREFULLY.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Jarek Kujawa" <(E-Mail Removed)> wrote in message
news:b5f8730c-e89e-492f-89d6-(E-Mail Removed)...
> Don,
> doesn't the OP need to divide 123ABC into sth. like 123 (in one cell)
> and ABC (in another)?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
5384: Easy Transfer not transfering easy... =?Utf-8?B?VmlzdGEgNTMwOCBUZXN0ZXI=?= Windows Vista Installation 7 16th Jul 2006 08:29 PM
new user with easy question? not easy for me speakeztruth Microsoft Excel New Users 4 3rd Jun 2005 09:40 PM
MACRO - Easy quesiton... hopefully easy answer! Ray W. Microsoft Word New Users 4 21st Sep 2004 10:21 PM
Send To - EASY QUESTION / Task Bar - Another EASY ? Mike Microsoft Windows 2000 Applications 3 24th May 2004 07:55 PM
easy to look at and easy to maintain web page menuing system. Hazzard Microsoft ASP .NET 2 6th Apr 2004 04:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:22 PM.