Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2006

Tip: Looking for answers? Try searching our database.

Need Simple Macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jreinert - 15 Jun 2006 15:14 GMT
I need a macro to examine column A for alpha-numeric value, leave the
data in column A as is, and copy the numeric data into column B.

The data is in only 1 of 2 formats:

xxxxx1234567
xxx1234567

Thanks in advance.

--Joe

Signature

jreinert

CLR - 15 Jun 2006 15:24 GMT
No macro needed......In B1 put this formula and copy down..........

=RIGHT(a1,7)

Vaya con Dios,
Chuck, CABGx3

> I need a macro to examine column A for alpha-numeric value, leave the
> data in column A as is, and copy the numeric data into column B.
[quoted text clipped - 7 lines]
>
> --Joe
Bob Phillips - 15 Jun 2006 15:58 GMT
In C1 add

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

In B1,

=SUBSTITUTE(A1,C1,"")

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

> I need a macro to examine column A for alpha-numeric value, leave the
> data in column A as is, and copy the numeric data into column B.
[quoted text clipped - 13 lines]
> jreinert's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=35448
> View this thread: http://www.excelforum.com/showthread.php?threadid=552248
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.