+ Reply to Thread
Results 1 to 4 of 4

Text to Number

  1. #1
    Registered User
    Join Date
    11-14-2010
    Location
    Kuwait
    MS-Off Ver
    Excel 2003
    Posts
    1

    Thumbs up Text to Number

    Hello everybody!

    I have a couple of letters (aka answers to questions) in a cell, such as -

    AEAABDAAEDCADCEDBCADAADEACDBCCCDECDDBDCBB

    I need to prepend consecutive numbers to each letter, any help will be appreciated!

    1.A 2.E 3.A 4.A 5.B 6.D 7.A 8.A 9.E 10.D 11.C 12.A etc.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Text to Number

    I took some earlier example of conc. range and that might be a good start but I don't know how to finnish it..

    maybe someone could continue...
    Attached Files Attached Files

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Text to Number

    Not really clear in terms of

    a) no. of strings are being adjusted

    b) whether originals are to be overridden
    but in general terms I think you will want to use VBA - to that end the below is a basic example but there will be more efficient alternatives.
    First however it would be good to know answers to both questions outlined above

    Please Login or Register  to view this content.
    edit: another alternative would to be to use UDF via 3rd Party Add-In like morefunc.xll

    Please Login or Register  to view this content.
    but I would say that using your own code would be preferable for a no. of reasons
    Last edited by DonkeyOte; 11-14-2010 at 12:18 PM.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Text to Number

    Another option
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1