Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
jreinert
 
Posts: n/a
Default Need Simple Macro


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


--
jreinert
------------------------------------------------------------------------
jreinert's Profile: http://www.excelforum.com/member.php...o&userid=35448
View this thread: http://www.excelforum.com/showthread...hreadid=552248

  #2   Report Post  
Posted to microsoft.public.excel.newusers
CLR
 
Posts: n/a
Default Need Simple Macro

No macro needed......In B1 put this formula and copy down..........

=RIGHT(a1,7)

Vaya con Dios,
Chuck, CABGx3



"jreinert" wrote:


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


--
jreinert
------------------------------------------------------------------------
jreinert's Profile: http://www.excelforum.com/member.php...o&userid=35448
View this thread: http://www.excelforum.com/showthread...hreadid=552248


  #3   Report Post  
Posted to microsoft.public.excel.newusers
Bob Phillips
 
Posts: n/a
Default Need Simple Macro

In C1 add

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

In B1,

=SUBSTITUTE(A1,C1,"")

--

HTH

Bob Phillips

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

"jreinert" wrote in
message ...

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


--
jreinert
------------------------------------------------------------------------
jreinert's Profile:

http://www.excelforum.com/member.php...o&userid=35448
View this thread: http://www.excelforum.com/showthread...hreadid=552248



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
Simple macro help chip_pyp Excel Discussion (Misc queries) 3 January 10th 06 08:57 PM
Macro Help In Excel welshlad Excel Discussion (Misc queries) 14 October 26th 05 03:34 PM
Recording simple macro Dave Excel Worksheet Functions 5 July 16th 05 01:34 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 12:07 PM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 11:12 PM


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