LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default divide and conquer --- help!

You can do it with worksheet functions

2A: =IF(LEN($A$1)=COLUMN(A2),MID($A$1,COLUMN(A2),1)," ")

copy across

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"anthrobro " wrote in message
...
I am trying to write a short macro for excel that will take the contents
of a cell and then break each character up into a different cell.

For example, in cell 1-A is "U1234A"

I need my macro to break that into:

2-A = "U" , 2-B = "1" , 2-C = "2" , 2-D = "3" ...... etc.


Can anyone give me a quick example code? My main problem is I dont
know how to program the macro to pull each character out of a selected
cell and break it up.

I was thinking maybe put it into an array?


---
Message posted from http://www.ExcelForum.com/



 
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
divide Marc Excel Discussion (Misc queries) 2 September 22nd 06 02:34 AM
Divide by 3 GARY Excel Discussion (Misc queries) 1 May 11th 06 03:26 PM
divide by 0 sony654 Excel Worksheet Functions 4 April 24th 05 08:10 AM
Divide by Zero rocky Excel Worksheet Functions 3 April 22nd 05 12:50 PM
Divide one row over other row I dont wont to divide one number Rick Excel Discussion (Misc queries) 0 March 4th 05 07:13 PM


All times are GMT +1. The time now is 09:17 PM.

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"